t1 = input().strip('\n') # Ensure no trailing newline is included t2 = input().strip('\n') print(f'({t1}{t2}{t1})/')