Time Limit: 2 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: Codeforces 1213G

Subtask Score
1 2
2 12
3 10
4 17
5 20
6 5
7 24
8 10
9 0