Time Limit: 6000ms
Memory Limit: 512MB
Reverse Graph