#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  char start = s[0];
  string res = "";
  res += start;
  int flag = 0;
  for (long long int i = 1; i < s.length(); i++) {
    if (i + 3 != s.length() && s.substr(i, 3) == "dot") {
      res += ".";
      i += 2;
    } else if (i + 2 != s.length() && flag == 0 && s.substr(i, 2) == "at") {
      res += "@";
      i += 1;
      flag = 1;
    } else {
      res += s[i];
    }
  }
  cout << res << endl;
}
int main() {
  long long int t;
  t = 1;
  while (t--) {
    solve();
  }
}
