Time Limit: 2 Seconds
Memory Limit: 256MB
No. of ACs: 6
Your best score: 0
Source: APIO 2016
Editorial: 1

Subtask Score
1 7
2 19
3 29
4 45