Time Limit: 4 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: NOI 2014

Subtask Score
1 16
2 20
3 24
4 40
5 0