i=$<.read.split.map &:to_f x=i[0].abs y=i[1].abs p (i[1]<0?2:x!=0?1:0)+(y!=0?((y/i[2]).ceil):0)+(x!=0?((x/i[2]).ceil):0)