Time Limit: 2 Seconds
Memory Limit: 256MB
Your best score: 0
Source: NOI 2016

Subtask Score
1 5
2 12
3 18
4 11
5 37
6 17
7 0