Time Limit: 1000ms
Memory Limit: 256MB
K - The Complete tournament