Robinson Crusoe
Time limit1sMemory limit1024 MB
Given day n, print the wall record where each complete group of five days becomes a V and the leftover days appear as I.
- Level
Easy2 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
Robinson Crusoe is stranded on a deserted island and marks the days on the wall of his hut.
Each day he carves a notch, which we denote by the English letter I. Every 5 days he crosses out the four previous notches, producing a symbol we denote as V.
What record is on the wall of Robinson's hut on day ?
Input
A single integer is given ().
Output
Print the record on the wall of Robinson's hut on day .