x = int(input()) y = int(input()) l = int(input()) x = (x**2)**0.5 y = (y**2)**0.5 print(int((x+l-1)//l+(y+l-1)//l))