while True:
try:
a,b,c=map(int,input().split())
total=0
for i in range(a,c+1):
if i%a==0 or i%b==0:
total+=i
if total>26:
s=total-26
print(chr(s+65-1))
else:
print(chr(total+65-1))
except:
break
1.
for i in range(a,c+1):
2.
s=total-26
1.是從1開始不是從a開始
2.有沒有想過total可能大於52?