#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e3 + 5;
int vis[MAXN];
int main() {
  int m, n, i, j, k;
  string s;
  cin >> s;
  for (i = 2; i < s.length() - 1; i++) {
    if (s[i] == 't' && s[i - 1] == 'a') {
      vis[i] = vis[i - 1] = 2;
      break;
    }
  }
  for (i = 3; i < s.length() - 1; i++) {
    if (s[i] == 't' && s[i - 1] == 'o' && s[i - 2] == 'd' && !vis[i] &&
        !vis[i - 1] && !vis[i - 2]) {
      vis[i] = vis[i - 1] = vis[i - 2] = 1;
    }
  }
  string ans;
  for (i = 0; i < s.length(); i++) {
    if (vis[i] == 1) {
      ans += '.';
      i += 2;
      continue;
    }
    if (vis[i] == 2) {
      ans += '@';
      i++;
      continue;
    }
    ans += s[i];
  }
  cout << ans << endl;
}
