Time Limit: 6 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: Educational Codeforces Round 27

Subtask Score
1 6
2 19
3 9
4 16
5 11
6 25
7 14
8 0