#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  int n = 0, m = 0, x = 0;
  char s[150];
  cin >> a;
  for (int z = 1; z < a.length(); z++) {
    if (a[z] == 'a' && a[z + 1] == 't' && a.length() - z > 2 && x == 0) {
      s[z - n] = '@';
      n++;
      z++;
      m++;
      x++;
      continue;
    } else if (a[z] == 'd' && a[z + 1] == 'o' && a[z + 2] == 't' &&
               a.length() - z > 3) {
      s[z - n] = '.';
      n += 2;
      z = z + 2;
      m++;
      continue;
    } else
      s[z - n] = a[z];
    m++;
  }
  s[0] = a[0];
  for (int z = 0; z <= m; z++) {
    cout << s[z];
  }
  cout << endl;
  return 0;
}
