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