Time Limit: 2000ms
Memory Limit: 256MB
K - Gotta Spend Them Tickets