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