M = input() N = input() print("(" + M + N + M + ")" + "/")