#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, i, j, k, x, y, t;
  string str;
  cin >> str;
  vector<string> v;
  long long cnt = 0;
  n = str.size();
  vector<long long> a(n + 5);
  for (i = 0; i < n; i++) {
    if (str[i] != '.') {
      cnt++;
      if (cnt > 11) {
        printf("NO\n");
        return 0;
      }
    } else {
      if (cnt == 0) {
        printf("NO\n");
        return 0;
      }
      a[i] = cnt;
      cnt = 0;
    }
  }
  if (cnt > 11 || cnt == 0) {
    printf("NO\n");
    return 0;
  }
  vector<long long> u;
  long long f = 0;
  for (i = 0; i < n; i++) {
    if (a[i] == 1 && f) {
      printf("NO\n");
      return 0;
    }
    if (a[i]) f = 1, u.push_back(a[i]);
  }
  if (u.size() == 0) {
    printf("NO\n");
    return 0;
  }
  if (u.size() == 1) {
    cnt = 0;
    for (i = 0; i < n; i++) {
      if (str[i] == '.') break;
      cnt++;
    }
    if (cnt > 8) {
      printf("NO\n");
      return 0;
    }
    cnt = 0;
    for (i = 0; i < n; i++) {
      if (str[i] == '.' || cnt) cnt++;
    }
    if (cnt > 4) {
      printf("NO\n");
      return 0;
    }
    printf("YES\n");
    cout << str << endl;
    return 0;
  }
  long long cur = 1;
  string tmp = "";
  for (i = 0; i < n; i++) {
    if (str[i] == '.') {
      tmp += str[i];
      v.push_back(tmp);
      tmp = "";
      k = u[cur++];
      if (k > 3) {
        cnt = 3;
        while (cnt--) tmp += str[++i];
        v.push_back(tmp);
        tmp = "";
      } else {
        tmp = str[++i];
        v.push_back(tmp);
        tmp = "";
      }
    } else {
      tmp += str[i];
    }
  }
  v.back() += tmp;
  if (v.back().size() > 3) {
    printf("NO\n");
    return 0;
  }
  printf("YES\n");
  for (i = 0; i < v.size(); i += 2) cout << v[i] << v[i + 1] << endl;
}
