Time Limit: 3 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: JOI

Subtask Score
1 10
2 24
3 14
4 22
5 30
6 0