#include <bits/stdc++.h>
using namespace std;
bool maxl(long long a, long long b) { return a > b; }
bool minl(long long a, long long b) { return a < b; }
bool cmp(int a, int b) { return a > b; }
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  return x * f;
}
int main() {
  string s1;
  string s2;
  int i, j, n, f1 = 0, f2 = 0, f3 = 0, f4 = 0, f5 = 0;
  cin >> s1;
  n = s1.length();
  for (i = 0; i < s1.length(); i++) {
    if (s1[i] == '@') {
      f1 = 1;
      break;
    }
  }
  for (i = 0; i < n; i++) {
    if (s1[i] == 'a' && i != 0 && i != n - 2 && f1 == 0) {
      if (s1[i + 1] == 't') {
        s2 += '@';
        i += 1;
        f1 = 1;
      } else {
        s2 += s1[i];
      }
    } else if (s1[i] == 'd' && i != n - 3 && i != 0) {
      if (s1[i + 1] == 'o' && s1[i + 2] == 't') {
        s2 += '.';
        i += 2;
      } else {
        s2 += s1[i];
      }
    } else
      s2 += s1[i];
  }
  cout << s2 << endl;
}
