#include <bits/stdc++.h>
using namespace std;
const long long logN = 20;
const long long M = 1000000007;
const long long INF = 1e12;
const long long N = 100005;
const long int maxi = 1000000;
int main() {
  string s;
  cin >> s;
  long long i, x = 0, n = s.size();
  vector<long long> v1, v;
  for (i = 0; i < n; i++) {
    if (s[i] == '.') {
      v.push_back(x);
      x = 0;
    } else {
      x++;
    }
  }
  if (x == 0 || v.size() == 0 || v[0] > 8 || x > 3 || v[0] < 1) {
    cout << "NO" << endl;
  } else {
    v.push_back(x);
    long long sum = v[0], z = 0, j;
    for (i = 1; i < v.size() - 1; i++) {
      if (v[i] - 3 <= 8 && v[i] - 3 >= 1) {
        v1.push_back(sum + i + 3);
      } else if (v[i] - 3 > 8) {
        z++;
        break;
      } else if (v[i] - 2 >= 1) {
        v1.push_back(sum + i + 2);
      } else if (v[i] - 1 >= 1) {
        v1.push_back(sum + i + 1);
      } else {
        z++;
        break;
      }
      sum = sum + v[i];
    }
    if (z > 0) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
      j = 0;
      if (v1.size() == 0) {
        cout << s << endl;
      } else {
        for (i = 0; i < n; i++) {
          if (j < v1.size() && i == v1[j]) {
            cout << endl;
            j++;
          }
          cout << s[i];
        }
      }
      cout << endl;
    }
  }
}
