#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[101];
  cin >> s;
  cout << s[0];
  int x = 1, count = 1;
  int l = strlen(s);
  for (int i = 1; i < l; i += x) {
    if (s[i] == 'd' && s[i + 1] == 'o' && s[i + 2] == 't' && i <= l - 4) {
      cout << ".";
      x = 3;
    } else if (s[i] == 'a' && s[i + 1] == 't' && i <= l - 3 && count <= 1) {
      cout << "@";
      x = 2;
      count++;
    } else {
      cout << s[i];
      x = 1;
    }
  }
  return 0;
}
