x,y,h=map(int,input().split()) x*=1000 y*=1000 ans=0 if x>y: x,y=y,x while h