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