main(f){char s[100001];f=0;scanf("%s",s);for(int i=0;s[i];){if(s[i]=='(')f=1;if(!f) printf("%c",s[i]);if(s[i++]==')'){f=0;printf("@");}}}