def f(a, b, c): return sum(i for i in range(1, c+1) if i%a==0 or i%b==0)
a, b, c = map(int, input().split())print(chr(f(a, b, c)%26+64))