Problems
Queue
Competitions
Ranking
Articles
Signup
Signin
bolt
Try our new interface for solving problems
Try
Problems
5
Statement
Solutions
Statistics
Discussion
5
Дивись українську версію задачі
Time limit
0.3
seconds
Memory limit
64
MiB
Input example #1
content_copy
3 1 23
Output example #1
content_copy
7
Author Ентін Й.А.
4