#include using namespace std; typedef long long ll; typedef string str; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); str s; cin >> s; bool check = false; for (ll i = 0; i < s.size(); i++) { if (s[i] != '(' && !check) cout << s[i]; else { check = true; if (s[i] == ')') { check = false; cout << '@'; } } } return 0; }