#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int count1 = 0;
  vector<int> v;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '.') {
      if ((count1 > 11 || count1 < 2) && i > 1) {
        cout << "NO" << endl;
        return 0;
      }
      if (i == 0 || i == s.size()) {
        cout << "NO" << endl;
        return 0;
      }
      v.push_back(count1);
      count1 = 0;
    } else {
      count1++;
      if (i == 8 && count1 > 8) {
        cout << "NO" << endl;
        return 0;
      }
      if (i == (s.size() - 1) && count1 > 3) {
        cout << "NO" << endl;
        return 0;
      }
    }
  }
  if (count1 == 0) {
    cout << "NO" << endl;
    return 0;
  }
  v.push_back(count1);
  if (v.size() == 1) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  cout << s.substr(0, v[0]) << ".";
  int j = 1;
  for (int i = 1; i < s.size(); i++) {
    if (s[i] == '.') {
      if (v[j] > 8 && j < (v.size() - 1)) {
        cout << s.substr(i + 1, 3) << endl;
        cout << s.substr(i + 4, v[j] - 3) << ".";
      }
      if (v[j] <= 8 && j < (v.size() - 1)) {
        cout << s.substr(i + 1, 1) << endl;
        cout << s.substr(i + 2, v[j] - 1) << ".";
      }
      j++;
    }
  }
  cout << s.substr(s.size() - v[v.size() - 1], v[v.size() - 1]) << endl;
}
