There is an exceeding '\n' character at the beginning of each case test. Moreover problem description doesn't match cases with heading and trailing spaces.
43