Time Limit: 2 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: IOI 2016

Subtask Score
1 4
2 12
3 9
4 16
5 19
6 40
7 0