F. The Halfwitters
time limit per test
5 с
memory limit per test
512 megabytes
input
standard input
output
standard output