#include <bits/stdc++.h>
using namespace std;
int main() {
  string inp;
  cin >> inp;
  string ans = inp.substr(0, 1);
  bool at = false;
  for (int i = 1; i < inp.length();) {
    if (inp.substr(i, 3) == "dot" && i + 3 != inp.length()) {
      ans += ".";
      i += 3;
    } else if (inp.substr(i, 2) == "at" && at == false &&
               i + 2 != inp.length()) {
      at = true;
      ans += "@";
      i += 2;
    } else {
      ans += inp.substr(i, 1);
      i++;
    }
  }
  cout << ans << endl;
  return 0;
}
