#include <bits/stdc++.h>
using namespace std;
int dp[500000][9][2];
string ss;
int n;
vector<string> ans;
void rec(vector<string> &z, int i, int j, int l, string s) {
  if (i == n) {
    if (s.size() > 0 && (l == 0 || (l == 1 && j == 0))) {
      return;
    }
    ans = z;
    if (s.size() > 0) {
      ans.push_back(s);
    }
    return;
  }
  if (dp[i][j][l] != -1) {
    return;
  }
  if (ans.size() > 0) {
    return;
  }
  if (ss[i] == '.') {
    if (j == 0 || l == 1) {
      return;
    }
    s.push_back('.');
    rec(z, i + 1, 0, 1, s);
  } else {
    if (l == 0) {
      if (j >= 8) {
        return;
      }
      s.push_back(ss[i]);
      rec(z, i + 1, j + 1, 0, s);
    } else {
      if (j > 0) {
        z.push_back(s);
        string zz;
        zz.push_back(ss[i]);
        rec(z, i + 1, 1, 0, zz);
        z.pop_back();
      }
      if (j < 3) {
        s.push_back(ss[i]);
        rec(z, i + 1, j + 1, 1, s);
      }
    }
  }
  dp[i][j][l] = 1;
}
int main() {
  cin >> ss;
  n = ss.size();
  memset(dp, -1, sizeof(dp));
  vector<string> z;
  rec(z, 0, 0, 0, "");
  if (ans.size() > 0) {
    cout << "YES" << endl;
    for (int i = 0; i < ans.size(); i++) {
      cout << ans[i] << endl;
    }
  } else {
    cout << "NO" << endl;
  }
}
