UOS String
Time limit1sMemory limit1024 MB
Given a 1-based position x, print the character at that position in the infinite repeating string UOSUOS..., which follows from x modulo 3.
- Level
Easy1 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
A UOS string is an endlessly repeating sequence of UOS, such as UOSUOSUOSU.... Given a positive integer , find the -th character of the UOS string.
Input
The first line contains .
Output
Print the -th character of the UOS string.