Problem D. Nothing is Impossible

HDU - 6335