#include <bits/stdc++.h>
using namespace std;
int mod = 1e9 + 7;
bool comp(pair<int, int> a, pair<int, int> b) { return a.second < b.second; }
int main() {
  string s;
  cin >> s;
  vector<int> Ans;
  int St = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '.') {
      if (St == 0) {
        if (i > 8 || i == 0) {
          cout << "NO";
          return 0;
        }
      } else {
        if (i - St - 1 <= 11 && i - St - 1 >= 8 && i - St - 1 >= 2) {
          Ans.push_back(St + 3);
        } else if (i - St - 1 < 8 && i - St - 1 >= 2) {
          Ans.push_back(St + 1);
        } else {
          cout << "NO";
          return 0;
        }
      }
      St = i;
    }
  }
  if (St == 0) {
    cout << "NO";
    return 0;
  }
  if (s.size() - St - 1 > 3 || s.size() - St - 1 == 0) {
    cout << "NO";
    return 0;
  } else {
    cout << "YES" << '\n';
    int j = 0;
    for (int i = 0; i < s.size(); i++) {
      cout << s[i];
      if (j < Ans.size()) {
        if (Ans[j] == i) {
          cout << '\n';
          j++;
        }
      }
    }
  }
  return 0;
}
