a,b,c,d=input().split() if b!=0: print(b+a+d+c) else: print(a+d+c)
------Input------ 8051 ------Answer----- 815 ------Your output-----