#include <bits/stdc++.h>
using namespace std;
int main() {
  string x;
  bool aat = true;
  cin >> x;
  string y;
  y += x[0];
  for (int i = 1; i < x.length(); i++) {
    if ((x[i] == 'a' && x[i + 1] == 't' && aat == true &&
         i != x.length() - 2)) {
      y += "@";
      aat = false;
      i++;
    } else if (x[i] == 'd' && x[i + 1] == 'o' && x[i + 2] == 't' &&
               i != x.length() - 3) {
      y += ".";
      i += 2;
    } else
      y += x[i];
  }
  cout << y;
  return 0;
}
