Greg Dwarf busy recently excavation Neverland Mountain however wellknown reason probably remember unusual dwarf stand sunlight Greg excavate night and morning crypt sun ray strike that s wants find short route excavation point crypt Greg recollect Codeforces participant successfully solve problem transport coffin crypt so miraculous way Greg appear bedroom ask help highly persuasive manner as usual do not feel like turn downafter think formalize task follow Neverland mountain regular shape end sharp peak represent cone base radius equal r height equal h the graveyard Greg busy excavate crypt represent point cone surface all you ve get find distance point cone surface the task complicated fact mountain base ground level mountain dig gnome wonder they ve look stuff Greg so consider short way pass surface cone base specific case point lie cone base sample testGreg satisfied problem solution represent length short path point find way pretty he give hour solve problem time tick