b =input();c =input() a = ['(']+[b]+[c]+[b]+[')','/'] print("".join(a))