SciComLove (2024)
Time limit1sMemory limit1024 MB
Given N, print the string SciComLove reversed N times: the original if N is even, or evoLmoCciS if N is odd.
- Level
Easy1 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
Minkyu's favorite string is "SciComLove" (without the quotes). Recently Minkyu learned how to reverse a string. Reversing a string once means changing it by the following process.
- Reversing a string of length once gives the string , which is read backwards from its right end, that is, .
Minkyu went further and came up with the following method for reversing a string times.
- When , the string from reversing times is the string from reversing the result of reversing times, once more.
Using this method, Minkyu wanted to find the string obtained by reversing "SciComLove" times, but once grew too large, he could not. Write a program that finds the string obtained by reversing "SciComLove" times on Minkyu's behalf.
Input
The first line contains an integer .
Output
Print the string obtained by reversing "SciComLove" times. Do not print the quotes.