#include <bits/stdc++.h>
using namespace std;
string atChanger(string str) {
  string substring = "at";
  char a = str[0];
  str = str.substr(1);
  if (str.find(substring) != std::string::npos) {
    int index = str.find(substring);
    str.replace(index, 2, "@");
  }
  return a + str;
}
string dotChanger(string str) {
  string substring = "dot";
  if (str.find(substring) != std::string::npos) {
    int index = str.find(substring);
    str.replace(index, 3, ".");
  } else {
    return str;
  }
  return dotChanger(str);
}
int main() {
  string description;
  cin >> description;
  description = atChanger(description);
  description = dotChanger(description);
  if (description[0] == '.') description.replace(0, 1, "dot");
  if (description[description.size() - 1] == '.')
    description.replace(description.size() - 1, 1, "dot");
  cout << description;
  return 0;
}
