#include <bits/stdc++.h>
using namespace std;
const int INF = (int)1e9;
const int mod = (int)1e9 + 7;
const int MAX = (int)1e5 + 5;
int main(void) {
  string s;
  cin >> s;
  string a = "at", d = "dot";
  string ans;
  int l = s.length();
  bool flag = 0;
  for (int i = 0; i < (l); ++i) {
    if (i > 0 && i <= l - 4 && s.substr(i, 3) == d) {
      ans += ".";
      i += 2;
    } else if (!flag && i > 0 && i <= l - 3 && s.substr(i, 2) == a) {
      ans += "@";
      i++;
      flag = 1;
    } else
      ans += s[i];
  }
  cout << ans << endl;
  return 0;
}
