#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  string s;
  int end = 0;
  int x = str.size();
  if (str[x - 1] == 't' && str[x - 2] == 'o' && str[x - 3] == 'd') {
    end = 3;
    x -= 3;
    str.erase(str.begin() + (x), str.end());
  } else if (str[x - 1] == 't' && str[x - 2] == 'a') {
    end = 2;
    x -= 2;
    str.erase(str.begin() + (x), str.end());
  }
  int begin = 0;
  if (str[0] == 'd' && str[1] == 'o' && str[2] == 't') {
    begin = 3;
    str.erase(str.begin(), str.begin() + 3);
  } else if (str[0] == 'a' && str[1] == 't') {
    begin = 2;
    str.erase(str.begin(), str.begin() + 2);
  }
  for (int i = 0; i < str.size(); i++) {
    int o = str.find("at");
    int n = str.find("dot");
    if (n != -1) {
      str[n] = '.';
      str[n + 1] = '+';
      str[n + 2] = '+';
    }
    if (!(str.find("@") != string::npos))
      if (o != -1) {
        str[o] = '@';
        str[o + 1] = '+';
      }
  }
  for (int i = 0; i < str.size(); i++) {
    if (str[i] != '+') s.push_back(str[i]);
  }
  if (end == 3 && begin == 3)
    cout << "dot" << s << "dot" << endl;
  else if (end == 3 && begin == 2)
    cout << "at" << s << "dot" << endl;
  else if (end == 2 && begin == 3)
    cout << "dot" << s << "at" << endl;
  else if (end == 2 && begin == 2)
    cout << "at" << s << "at" << endl;
  else if (end == 0 && begin == 2)
    cout << "at" << s << endl;
  else if (end == 0 && begin == 3)
    cout << "dot" << s << endl;
  else if (end == 2 && begin == 0)
    cout << s << "at" << endl;
  else if (end == 3 && begin == 0)
    cout << s << "dot" << endl;
  else
    cout << s << endl;
  return 0;
}
