I. Lineup the Dominoes
time limit per test
7 s
memory limit per test
256 megabytes
input
standard input
output
standard output