#include <bits/stdc++.h>
using namespace std;
int aa[222222], nova[222222];
string a, b;
long long n, m, x, y;
string replace_dots(string s) {
  string s2 = s;
  string res = "";
  for (int j = (0); j < (s2.size()); j++) {
    string now = s2.substr(j, 3);
    if (now == "dot" && (j != 0 && j != s2.size() - 3)) {
      j += 2;
      res += ".";
    } else
      res += s2[j];
  }
  return res;
}
string replace_ats(string s) {
  string s2 = s;
  string res = "";
  int jj;
  for (int j = (0); j < (s2.size()); j++) {
    string now = s2.substr(j, 2);
    if (now == "at" && (j != 0 && j != s2.size() - 2)) {
      j += 2;
      res += "@";
      jj = j;
      break;
    } else
      res += s2[j];
  }
  for (int i = (jj); i < (s2.size()); i++) res += s2[i];
  return res;
}
int main(void) {
  cin >> a;
  if (a.size() <= 3) {
    cout << a << endl;
    return 0;
  }
  a = replace_dots(a);
  a = replace_ats(a);
  cout << a << endl;
  return 0;
}
