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

Subtask Score
1 4
2 30
3 66
4 0