E. 好多個三口羊 (Escape)
time limit per test
5 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output