#include <bits/stdc++.h>
using namespace std;
int p;
string s;
int main() {
  cin >> s;
  p = s.find("at", 1);
  s.replace(p, 2, "@");
  p = 1;
  while (1) {
    p = s.find("dot", p);
    if (p == -1 || p == s.size() - 3) break;
    s.replace(p, 3, ".");
  }
  cout << s << endl;
  return 0;
}
