#include <bits/stdc++.h>
int main() {
  int i = 0, x = 0, y = 0, l = 0;
  bool b = false;
  char a[101];
  char e[101];
  while ((a[i++] = getchar()) != '\n')
    ;
  i = 0;
  while (a[i] != '\n') {
    if (i > 0) {
      if (a[i] == 'd' && a[i + 1] == 'o' && a[i + 2] == 't' &&
          a[i + 3] != '\n') {
        e[l] = '.';
        i += 3;
      } else if (a[i] == 'a' && a[i + 1] == 't' && a[i + 2] != '\n' && !b) {
        e[l] = '@';
        i += 2;
        b = true;
      } else {
        e[l] = a[i];
        i++;
      }
    } else {
      e[l] = a[i];
      i++;
    }
    putchar(e[l]);
    l++;
  }
  return 0;
}
