Hamsters and Tigers
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Today there is going to be an unusual performance at the circus — hamsters and tigers will perform together! All of them stand in circle along the arena edge and now the trainer faces a difficult task: he wants to swap the animals' positions so that all the hamsters stood together and all the tigers als