Problems
Queue
Competitions
Ranking
Articles
Signup
Signin
bolt
Try our new interface for solving problems
Try
Problems
Палочки
Statement
Solutions
Statistics
Discussion
Палочки
Палочки
Time limit
5
seconds
Memory limit
64
MiB
Input example #1
content_copy
1 8 6 19
Output example #1
content_copy
54