K. New Year Festival
time limit per test
7 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output

Please read the problem statements here.