first 3 month succesfully printing to terminal for year input