#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, ans = "";
  int ct = 0;
  cin >> s;
  for (int i = 0; s[i]; ++i) {
    if (s[i] == 'd' && s[i + 1] == 'o' && s[i + 2] == 't') {
      if (i != 0 && i + 2 != s.size() - 1)
        ans += ".";
      else
        ans += "dot";
      i += 2;
    } else if (s[i] == 'a' && s[i + 1] == 't' && ct == 0) {
      if (i != 0 && i + 1 != s.size() - 1) {
        ans += "@";
        ct++;
      } else
        ans += "at";
      i++;
    } else
      ans += s[i];
  }
  cout << ans;
}
