Time Limit: 1000ms
Memory Limit: 256MB
Path of Pain