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