#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, sub;
  cin >> s;
  sub = s.substr(1, s.size() - 2);
  int x = sub.find("at");
  sub.replace(x, 2, "@");
  while (sub.find("dot") != string::npos) {
    x = sub.find("dot");
    sub.replace(x, 3, ".");
  }
  cout << s[0] << sub << s[s.size() - 1];
}
