#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, b;
  cin >> s;
  int f = s.find('.'), f1;
  vector<string> v;
  if (f == -1 || f > 8 || f == 0) {
    cout << "NO";
    return 0;
  }
  int i = 0;
  while (f != -1) {
    f1 = s.find('.', f + 1);
    if (f1 != -1 && (f1 - f < 3 || f1 - f > 12)) {
      cout << "NO";
      return 0;
    } else {
      int sz = f - i;
      if (f1 == -1) {
        if (s.size() - f > 4 || s.size() - f - 1 < 1) {
          cout << "NO";
          return 0;
        }
        b = s.substr(i);
      } else if (f1 - f <= 4) {
        b = s.substr(i, sz + 2);
        i = f + 2;
      } else {
        b = s.substr(i, sz + 4);
        i = f + 4;
      }
      v.push_back(b);
    }
    f = f1;
  }
  cout << "YES" << endl;
  for (int i = 0; i < v.size(); i++) {
    cout << v[i] << endl;
  }
  return 0;
}
