One Monday Sourabh decided to check the swipe record and found out the number of absentees and the swipe defaulters (people who do not complete 9 working hours). For the same he asked you to write a java program which will take the number of trainees and their swipe in and swipe-out time (don´t consider lunch break) and as a response i will provide the count of absentees and swipe defaulters as output.
Input Specification:
-------------------------------- First input n will take the number of trainee(trainees will be identified by number from 1 to n) where 1<=n<=500 Until user input 0(representing end of the day) input trainee id and in/out time(hh:mm). once trainee is IN, next input of same id represents OUT time and it is mandatory to have OUT time for all IN times)
Output Specification: ---------------------------------
Will contain 2 integer values: the first one representing number of absentees and second integer representing the number of swipe defaulters.
Sample input: -----------------------------
5
2 8:30
3 9:05
2 17:30
3 17:30
0
Sample output: -------------------------------
3
1
2