#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  vector<string> vec;
  while (1) {
    int now = s.find("dot");
    if (now == -1) break;
    s.replace(now, 3, ".");
  }
  if (s[0] == '.') {
    s.erase(0, 1);
    s = "dot" + s;
  }
  if (s[s.size() - 1] == '.') {
    s.erase(s.size() - 1, 1);
    s = s + "dot";
  }
  int n = s.size();
  for (int i = 1; i + 1 < n - 1; i++) {
    string p = s;
    if (s.substr(i, 2) == "at") {
      p.replace(i, 2, "@");
      vec.push_back(p);
    }
  }
  if (vec.empty())
    cout << s << endl;
  else {
    sort(s.begin(), s.end());
    cout << vec[0] << endl;
  }
  return 0;
}
