Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×

C. Bookface
time limit per test
2 seconds
memory limit per test
512 megabytes
input
standard input
output
standard output