#include <bits/stdc++.h>
using namespace std;
void read() {}
int main() {
  read();
  string s;
  while (cin >> s) {
    int l = s.size();
    string ans;
    bool f = 0;
    for (int i = 0; i < l; i++) {
      if (i != 0) {
        if (s[i] == 'a' && i + 1 < l - 1 && s[i + 1] == 't' && !f) {
          ans.push_back('@');
          i += 1;
          f = 1;
          continue;
        } else if (s[i] == 'd' && i + 2 < l - 1 && s[i + 1] == 'o' &&
                   s[i + 2] == 't') {
          ans.push_back('.');
          i += 2;
          continue;
        }
      }
      ans.push_back(s[i]);
    }
    cout << ans << "\n";
  }
}
