#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  regex e("(dot)");
  str = regex_replace(str, e, ".");
  regex e2("(at)");
  str = regex_replace(str, e2, "@");
  bool flag = true;
  for (long long i = 0; i < str.length(); i++) {
    if ((i == 0 || i == str.length() - 1)) {
      if (str[i] == '.') {
        cout << "dot";
      } else if (str[i] == '@') {
        cout << "at";
      } else {
        cout << str[i];
      }
    } else if (flag && str[i] == '@') {
      cout << '@';
      flag = false;
    } else if (str[i] == '@') {
      cout << "at";
    } else {
      cout << str[i];
    }
  }
  return 0;
}
