A,B,X=list(map(int,input().split())) cnt=0 ans=0 while cnt