#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  string ret;
  int ats = 0;
  for (int i = 0; i < str.length(); ++i) {
    string d, a;
    d = str.substr(i, 3);
    a = str.substr(i, 2);
    if (d == "dot" && i != 0 && i + 3 != str.length()) {
      ret += ".";
      i += 2;
    } else if (a == "at" && i != 0 && i + 2 != str.length() && ats == 0) {
      ret += "@";
      ++ats;
      ++i;
    } else {
      ret += str[i];
    }
  }
  cout << ret << endl;
}
