Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×
G. Fortune Telling
time limit per test
5 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output

Please read the problem statements here.