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