#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll md = 1000000007;
ll exp(ll a, ll b) {
  ll r = 1ll;
  while (b > 0) {
    if (b & 1) {
      r = r * (a % md);
      r = (r + md) % md;
    }
    b >>= 1;
    a = (a % md) * (a % md);
    a = (a + md) % md;
  }
  return (r + md) % md;
}
ll gcd(ll a, ll b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
ll Min(ll a, ll b) {
  if (a < b) return a;
  return b;
}
ll Max(ll a, ll b) {
  if (a > b) return a;
  return b;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s, s1;
  cin >> s;
  long long n = s.size();
  bool foo = true;
  for (ll i = 0; i <= n - 1; ++i) {
    if (foo && i > 0 && i + 1 < n - 1 && s[i] == 'a' && s[i + 1] == 't')
      s1 += '@', ++i, foo = false;
    else
      s1 += s[i];
  }
  s = s1;
  s1 = "";
  n = s.size();
  for (ll i = 0; i <= n - 1; ++i) {
    if (i > 0 && i + 2 < n - 1 && s[i] == 'd' && s[i + 1] == 'o' &&
        s[i + 2] == 't')
      s1 += '.', i += 2;
    else
      s1 += s[i];
  }
  cout << s1;
  cout << '\n';
  return 0;
}
