#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  int len = 0;
  vector<int> pos;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '.') {
      if (len > 8 || len < 1) {
        cout << "NO\n";
        return 0;
      }
      int ind = i + 1;
      while (ind < n && s[ind] != '.' && (ind + 1 == n || s[ind + 1] != '.') &&
             ind <= i + 3) {
        ind++;
      }
      if (ind == i + 1) {
        cout << "NO\n";
        return 0;
      }
      pos.push_back(ind);
      i = ind - 1;
      len = 0;
    } else {
      len++;
    }
  }
  if (pos.size() == 0 || len != 0) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  for (int i = 0; i < pos.size(); ++i) {
    for (int j = (i - 1 >= 0 ? pos[i - 1] : 0); j < pos[i]; j++) cout << s[j];
    cout << "\n";
  }
}
