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