T1 = input() T2 = input() print('('+T1+T2+T1+')'+'/')