#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int sz = s.size();
  putchar(s[0]);
  string cur = "";
  bool at = false;
  for (int i = 1; i < sz; ++i) {
    if (cur == "" && (s[i] == 'd' || s[i] == 'a')) {
      cur += s[i];
    } else if (cur == "d" && s[i] == 'o')
      cur += 'o';
    else if (cur == "do" && s[i] == 't') {
      if (i < sz - 1) {
        putchar('.');
      } else
        printf("dot");
      cur = "";
    } else if (cur == "a" && s[i] == 't') {
      if (at)
        printf("at");
      else {
        putchar('@');
        at = true;
      }
      cur = "";
    } else {
      printf(cur.c_str());
      cur = "";
      if (s[i] == 'a' || s[i] == 'd')
        cur += s[i];
      else
        putchar(s[i]);
    }
  }
  puts(cur.c_str());
  return 0;
}
