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