#include using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define INF32 2147483647 #define ALL(x) x.begin(), x.end() vector ddx = {0, 1, 0, -1, 1, 1, -1, -1}; vector ddy = {1, 0, -1, 0, 1, -1, -1, 1}; int main() { string t;cin>>t; int n = t.size(); bool ok = true; rep(i,n){ if(t.at(i) == '('){ ok = false; } if(t.at(i) == ')'){ ok = true; cout<< '@'; continue; } if(ok)cout<< t.at(i); } cout<