s = input() t = input() ans = "" for i in range(6): if i == 0: ans += "(" elif i == 1: ans += s elif i == 2: ans += t elif i == 3: ans += s elif i == 4: ans += ")" elif i == 5: ans += "/" print(ans)