#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  string s;
  cin >> s;
  int n = s.length();
  bool ok = true;
  vector<string> elm;
  string t = "";
  for (int i = 0; i < n; i++) {
    if (s[i] == '.') {
      int cur = t.length();
      if (!elm.empty() && (cur < 2 || cur > 11)) {
        ok = false;
        break;
      }
      if (elm.empty() && (cur < 1 || cur > 8)) {
        ok = false;
        break;
      }
      elm.push_back(t);
      t.clear();
    } else {
      t += s[i];
    }
  }
  if (!t.empty()) elm.push_back(t);
  if (!elm.empty() &&
      (elm.back().length() > 3 || elm.size() == 1 || s.back() == '.'))
    ok = false;
  if (ok) {
    cout << "YES\n";
    cout << elm[0] << ".";
    for (int i = 1; i < int(elm.size()) - 1; i++) {
      if (elm[i].length() <= 3) {
        cout << elm[i][0] << "\n" << elm[i].substr(1, elm[i].length() - 1);
      } else {
        cout << elm[i].substr(0, 3) << "\n"
             << elm[i].substr(3, elm[i].length() - 3);
      }
      cout << ".";
    }
    cout << elm.back();
  } else {
    cout << "NO";
  }
  return 0;
}
