#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  string st;
  cin >> st;
  long long n = st.size(), p = 0, s = 0, cnt = 0, dot = 0, ind = 0;
  vector<string> str;
  for (long long i = 0; i < n; i++) {
    if (st[i] != '.') {
      ++cnt;
    } else {
      if (dot == 0) {
        if (cnt > 8 || cnt == 0) {
          cout << "NO";
          return 0;
        }
        ++dot;
        p = cnt + 1;
        cnt = 0;
      } else {
        if (cnt < 2 || cnt > 11) {
          cout << "NO";
          return 0;
        }
        if (cnt < 4) {
          s = 1;
          string res = st.substr(ind, p + s);
          ind += p + s;
          str.push_back(res);
          s = 0;
          p = cnt;
          cnt = 0;
        } else {
          s = 3;
          string res = st.substr(ind, p + s);
          ind += p + s;
          str.push_back(res);
          s = 0;
          p = cnt - 2;
          cnt = 0;
        }
      }
    }
  }
  if (cnt > 3 || dot == 0 || cnt == 0) {
    cout << "NO";
    return 0;
  }
  string res = st.substr(ind, p + cnt);
  str.push_back(res);
  cout << "YES" << '\n';
  for (long long i = 0; i < str.size(); i++) {
    cout << str[i] << '\n';
  }
}
