s = raw_input() t = raw_input() print '('+s+t+s+')/'