#include <bits/stdc++.h>
using namespace std;
bool judge;
string a, b;
int main() {
  cin >> a;
  int i = 0;
  while (i < a.size()) {
    if (a[i] == 'd' && i != 0 && i != a.size() - 3) {
      if (a[i + 1] == 'o' && a[i + 2] == 't') {
        b += '.';
        i += 3;
        continue;
      } else {
        b += a[i];
        i++;
        continue;
      }
    } else {
      if (a[i] == 'a' && i != 0 && i != a.size() - 2) {
        if (a[i + 1] == 't' && judge == false) {
          b += '@';
          i += 2;
          judge = true;
          continue;
        } else {
          b += a[i];
          i++;
          continue;
        }
      } else
        b += a[i];
      i++;
    }
  }
  cout << b << endl;
  return 0;
}
