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

Subtask Score
1 7
2 3
3 22
4 27
5 21
6 10
7 10
8 0