Time Limit: 1500ms
Memory Limit: 512MB
H - Moving Digits