#include int main(){ char str1[1]; scanf("%s",str1); char str2[1]; scanf("%s",str2); printf("(%s%s%s)/",str1,str2,str1); }