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