#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  vector<string> v;
  for (int i = 0; i < n; i++) {
    string res = "";
    int j = i;
    while (s[j] != '.' && j < n) {
      res += string(1, s[j]);
      j++;
    }
    if (j > n - 1 || res.length() > 8 || res.length() == 0) {
      cout << "NO" << endl;
      return 0;
    }
    res += string(1, '.');
    j++;
    int k;
    for (k = j; k < min(j + 3, n); k++) {
      if (s[k] == '.') {
        cout << "NO" << endl;
        return 0;
      } else {
        if (k + 1 == n) {
          res += string(1, s[k]);
          k++;
          break;
        } else {
          if (s[k + 1] == '.') {
            break;
          } else
            res += string(1, s[k]);
        }
      }
    }
    i = k - 1;
    if (res[res.length() - 1] == '.') {
      cout << "NO" << endl;
      return 0;
    }
    v.push_back(res);
  }
  cout << "YES" << endl;
  for (int i = 0; i < v.size(); i++) cout << v[i] << endl;
}
