#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = int(s.size());
  bool trobatat = false;
  for (int i = 0; i < n;) {
    if (i > 0 and i < n - 2 and trobatat == false and s[i] == 'a' and
        s[i + 1] == 't') {
      cout << "@";
      i += 2;
      trobatat = true;
    } else if (i > 0 and i < n - 3 and s[i] == 'd' and s[i + 1] == 'o' and
               s[i + 2] == 't') {
      cout << ".";
      i += 3;
    } else
      cout << s[i++];
  }
  cout << endl;
}
