#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    string s; cin >> s;
    bool ok = false;
    for (char c : s) {
        if (c == '(') {
            cout << "@";
            ok = true;
        } else if (c == ')') {
            ok = false;
        } else if (!ok) {
            cout << c;
        }
    }
}