N,A,B = map(int, input().split()) rem = (N-1)%(A+B) #print(rem) if A