Time Limit: 10 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: RI NOI Selection Test 2017

Subtask Score
1 4
2 16
3 18
4 23
5 39