#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  string s;
  cin >> s;
  x = s.find("dot");
  while (x != -1) {
    s.replace(x, 3, ".");
    x = s.find("dot");
  }
  if (s.front() == '.') s.replace(0, 1, "dot");
  if (s.back() == '.') s.replace(s.size() - 1, 1, "dot");
  x = s.find("at");
  if (x != 0)
    s.replace(x, 2, "@");
  else {
    x = s.find("at", x + 1);
    s.replace(x, 2, "@");
  }
  cout << s;
}
