#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  long long int n = s.size();
  string ans = "";
  ans += s[0];
  long long int p = 0;
  for (long long int i = 1; i < n; i++) {
    if (i < n - 3 && s[i] == 'd' && s[i + 1] == 'o' && s[i + 2] == 't') {
      ans += '.';
      i += 2;
    } else if (p == 0 && i < n - 2 && s[i] == 'a' && s[i + 1] == 't') {
      ans += '@';
      i += 1;
      p = 1;
    } else
      ans += s[i];
  }
  cout << ans;
}
