The Grand Festival I


#1

Some of the testcases contain trailing spaces in some input lines.
I don’t know about the validators.


#2

Thanks for reporting.
I removed the trailing spaces from the first 5 testcases and their validators, the rest was fine.