#include <bits/stdc++.h>
using namespace std;
char addr[128];
char addres[128] = {0};
int main() {
  cin >> addr;
  int k = 0;
  addres[k++] = addr[0];
  bool flag = 0;
  for (int i = 1; i < strlen(addr); i++) {
    if (i < (strlen(addr) - 3) && addr[i] == 'd' && addr[i + 1] == 'o' &&
        addr[i + 2] == 't') {
      addres[k++] = '.';
      i += 2;
      continue;
    }
    if (flag == 0 && addr[i] == 'a' && addr[i + 1] == 't') {
      addres[k++] = '@';
      flag = 1;
      i += 1;
      continue;
    }
    addres[k++] = addr[i];
  }
  cout << addres;
  return 0;
}
