#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
void fail() {
  cout << "NO";
  exit(0);
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s, cur = "";
  vector<string> mas;
  cin >> s;
  long long n = s.size();
  for (long long i = 0; i < n; i++) {
    if (s[i] == '.' && (cur.size() < 1 || cur.size() > 8))
      fail();
    else if (s[i] == '.') {
      cur += s[i];
      for (long long j = 0; j < 3; j++) {
        if (++i >= n) break;
        if (s[i] == '.') fail();
        if (i + 1 < n && s[i + 1] == '.') {
          i--;
          break;
        }
        cur += s[i];
      }
      if (cur.back() == '.') fail();
      mas.push_back(cur);
      cur = "";
    } else {
      cur += s[i];
    }
  }
  if (cur != "") fail();
  cout << "YES"
       << "\n";
  for (auto i : mas) {
    cout << i << "\n";
  }
  return 0;
}
