HDU 3518 Boring counting