<gh_stars>0
a, b = input().split()
int_a = int(a)
int_b = int(b)
a = str(int_a)
b = str(int_b)
ans = a+b
print(int(ans)*2)

a, b = input().split()
int_a = int(a)
int_b = int(b)
a = str(int_a)
b = str(int_b)
ans = a+b
print(int(ans)*2)