#include <bits/stdc++.h>
using namespace std;
void no_if(bool a) {
  if (a) {
    cout << "NO"
         << "\n";
    exit(0);
  }
}
int main() {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  vector<string> V(1, "");
  for (register int i = (0); i < (int)(((int)(s).size())); ++i)
    if (s[i] == '.') {
      no_if(((int)(V.back()).size()) == 0);
      V.push_back("");
    } else
      V.back() += s[i];
  no_if(((int)(V).size()) == 1 || ((int)(V[0]).size()) > 8 ||
        ((int)(V.back()).size()) > 3 || V.back() == "");
  for (register int i = (1); i < (int)(((int)(V).size()) - 1); ++i)
    no_if(((int)(V[i]).size()) > 3 + 8 || ((int)(V[i]).size()) < 2);
  cout << "YES"
       << "\n";
  cout << V[0];
  for (register int i = (1); i < (int)(((int)(V).size()) - 1); ++i) {
    int cut = min(((int)(V[i]).size()) - 1, 3);
    cout << "." << V[i].substr(0, cut) << "\n" << V[i].substr(cut);
  }
  cout << "." << V.back() << "\n";
  return 0;
}
