Time Limit: 2 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: ABC 248D (Modified)

Subtask Score
1 20
2 30
3 50
4 0