Mark programmed 8 apps on the second day of his computer science class. On day 3, hald of the qpplications he created were deleted accidentally. On day 4 mark had 14 apps remaining. How many did he program on day 1?