eye = input() mouth = input() print('(' + eye + mouth + eye + ')' + '/')