#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  string s;
  cin >> s;
  int len = s.length();
  bool one_dot = true;
  for (int i = 1; i < s.length(); i++) {
    if (s.substr(i, 2) == "at" && one_dot && i + 2 < s.length()) {
      s.replace(i, 2, "@");
      one_dot = false;
    }
    if (s.substr(i, 3) == "dot" && i + 3 < s.length()) s.replace(i, 3, ".");
  }
  cout << s;
  return 0;
}
