Time Limit: 3000ms
Memory Limit: 512MB
A - Cutting Swiss Cheese