#include using namespace std; string t; int j, k; int main(){ cin >> t; for(int i = 0; i < t.size(); i++){ if(t[i] == '('){ t[i] = '@'; j = i; } if(t[i] == ')') k = i; } t.erase(j + 1, k - j); cout << t << endl; return 0; }