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