t = input() s = input() print('('+t+s+t+')/')