Rosetta Problems

Twist and whirl - want to cheat

https://oj.vnoi.info/problem/twist