Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

E. Chayas
time limit per test
8 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output

Please read the problem statements here.