t1 = input() t2 = input() map(str, t1,t2) print ('(' + t2 + t1 + t2 + ')/')