parts = [input() for i in range(2)] item = "(" item += parts[0] item += parts[1] item += parts[0] item += ")/" print(item)