Time Limit: 1500ms
Memory Limit: 512MB
Well-indexed?