#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  size_t p_dot = s.find("dot", 1);
  if (p_dot != string::npos && p_dot != s.size() - 3) do {
      s.replace(p_dot, 3, ".");
      p_dot = s.find("dot", 1);
    } while (p_dot != string::npos && p_dot != s.size() - 3);
  size_t p_at = s.find("at", 1);
  if (p_at != string::npos && p_at != s.size() - 2) s.replace(p_at, 2, "@");
  cout << s << endl;
  return 0;
}
