Problems
Queue
Competitions
Ranking
Articles
Signup
Signin
bolt
Try our new interface for solving problems
Try
Problems
3
Statement
Solutions
Statistics
Discussion
3
Time limit
1
second
Memory limit
64
MiB
Дивись українську версію задачі
Examples
Input example #1
content_copy
200 20 15 1000 500
Output example #1
content_copy
2
2
Left and Right