changed expected values for month
changed hasNextInt to try-catch