#include <bits/stdc++.h>
using namespace std;
long long min(long long x, long long y) { return (x < y) ? x : y; }
long long max(long long x, long long y) { return (x > y) ? x : y; }
const int N = 100009;
int x, y, n, m, i, u, w, z, sum, best, j, k, t, mx;
int a[N];
string s, ans;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> s;
  n = s.size();
  while (i < n) {
    if (s[i] == 'd' && s[i + 1] == 'o' && s[i + 2] == 't' && i != 0 &&
        i != n - 3) {
      ans.push_back('.');
      i += 2;
    } else if (s[i] == 'a' && s[i + 1] == 't' && !x && i != 0 && i != n - 2) {
      x = 1;
      i++;
      ans.push_back('@');
    } else
      ans.push_back(s[i]);
    i++;
  }
  cout << ans;
  return 0;
}
