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