def main(): T1 = input() T2 = input() print('(' + str(T1) + str(T2) + str(T1) + ')/') if __name__ == '__main__': main()