#include <bits/stdc++.h>
using namespace std;
char a[1000007];
int main() {
  scanf("%s", a);
  int lm = strlen(a);
  string ans = "";
  int i = 0;
  int lt = 0;
  while (i < lm) {
    if (i) {
      if (i + 2 < lm - 1 && a[i] == 'd' && a[i + 1] == 'o' && a[i + 2] == 't')
        ans.push_back('.'), i = i + 3;
      else if (!lt && i + 1 < lm - 1 && a[i] == 'a' && a[i + 1] == 't')
        ans.push_back('@'), lt = 1, i = i + 2;
      else
        ans.push_back(a[i]), i++;
    } else
      ans.push_back(a[i]), i++;
  }
  cout << ans << endl;
  return 0;
}
