Codeforces 243, Codejam qual1A