codeforces 231 Div 2 - A

parsing input and check whether count correct or not.