#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  bool at = false;
  for (int i = 0; i < s.size(); i++) {
    if (i > 0) {
      if (s[i] == 'a' and s[i + 1] == 't' and i < n - 2 and !at) {
        at = true;
        cout << '@';
        i++;
        continue;
      }
      if (s[i] == 'd' and s[i + 1] == 'o' and s[i + 2] == 't' and i < n - 3) {
        cout << '.';
        i += 2;
        continue;
      }
    }
    cout << s[i];
  }
  return 0;
}
