#include <bits/stdc++.h>
using namespace std;
using namespace std;
char a[1000], b[1000];
int l;
int cmpa(int i) {
  if (a[i] == 'a' && a[i + 1] == 't') {
    if (i == 0 || i + 1 == l - 1) return 0;
    return 1;
  } else
    return 0;
}
int cmpd(int i) {
  if (a[i] == 'd' && a[i + 1] == 'o' && a[i + 2] == 't') {
    if (i == 0 || i + 2 == l - 1) return 0;
    return 1;
  } else
    return 0;
}
int main() {
  long long i, j, n, k, c, d, count4, count7;
  while (scanf("%s", a) == 1) {
    memset(b, 0, sizeof(b));
    l = strlen(a);
    j = 0;
    c = 0;
    for (i = 0; i < l; i++) {
      k = 0;
      if (c == 0) k = cmpa(i);
      if (k == 1) {
        b[j] = '@';
        j++;
        i++;
        c++;
      }
      if (k == 0) {
        k = cmpd(i);
        if (k == 1) {
          b[j] = '.';
          j++;
          i += 2;
        }
      }
      if (k == 0) {
        b[j] = a[i];
        j++;
      }
    }
    printf("%s\n", b);
  }
}
