Time Limit: 2 Seconds
Memory Limit: 256MB
Your best score: 0
Source: APIO 2015
Editorial: 1 2

Subtask Score
1 8
2 14
3 9
4 32
5 37