t = str(input()) T = str(input()) print('('+t+T+t+')/')