a,b = input().split() a = int(a, 16) b = int(b, 16) print(f'{a+b:X}')