#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
long long binpow(long long a, long long b) {
  long long res = 1;
  while (b > 0) {
    if (b & 1) res = res * a % 1000000007;
    a = a * a % 1000000007;
    b >>= 1;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  bool flag = false;
  for (int i = 0; i < s.size();) {
    if (i > 0 && i < s.size() - 2) {
      if (s[i] == 'a' && s[i + 1] == 't' && flag == false) {
        flag = true;
        cout << '@';
        i += 2;
      } else if (i < s.size() - 3 && s[i] == 'd' && s[i + 1] == 'o' &&
                 s[i + 2] == 't') {
        cout << ".";
        i += 3;
      } else {
        cout << s[i];
        i++;
      }
    } else {
      cout << s[i];
      i++;
    }
  }
  cout << endl;
  return 0;
}
