Cyclic rotation

Cyclic rotation. Given a four-digit integer number, perform its cyclic rotation by two digits, as shown in the tests below.

Input

Output

1234

3412

5678

7856

9876

7698

1122

2211

8070

7080

 

Leave a Reply

Your email address will not be published. Required fields are marked *