#define _USE_MATH_DEFINES
#include  <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <string>
#include<math.h>
#include<iomanip>
#include<stdio.h>
#include <stdlib.h>
#include<stdio.h>
#include <queue>
#include<map>
#include <sstream>
#include<set>
#include<stack>
#include<time.h>
#include <sys/types.h>
#include <tuple>
#include <numeric>


typedef long long int ll;
//#include<bits/stdc++.h>


using namespace std;



int main()
{

    int Q;
    Q = 1;
//    cin >> Q;

    while (Q--) {
        string p;
        cin >> p;
        int n=p.size();

        bool f = 0;
        for (int i = 0; i < n; i++) {
            if (p[i] == '(')f = 1;
            if (p[i] == ')') {
                f = 0; cout << '@'; continue;
            }
            if (f)continue;
            cout << p[i];
        }
       
    }

    return 0;
}