eye = str(input()) mouth = str(input()) print("({}{}{})/".format(eye, mouth,eye))