#include <bits/stdc++.h>
int main() {
  std::ios::sync_with_stdio(false);
  std::string name;
  std::cin >> name;
  bool atFlag = false;
  std::string result = "";
  result += name[0];
  for (int i = 1; i < name.length(); i++) {
    if (!atFlag && name.substr(i, 2) == "at") {
      result += '@';
      ++i;
      atFlag = true;
    } else if (i + 3 < name.length() && name.substr(i, 3) == "dot") {
      result += '.';
      i += 2;
    } else {
      result += name[i];
    }
  }
  std::cout << result;
  return 0;
}
