from fractions import Fraction as F

a, b = map(F, input().split())
print(int(a + b))