#include <bits/stdc++.h>
using namespace std;
char str[500000];
string s[500000];
void solve() {
  int len = strlen(str);
  int ind = -1;
  string tmp = "";
  for (int i = 0; i < len; i++) {
    tmp += str[i];
    if (str[i] == '.') {
      ind = i;
      break;
    }
  }
  if (ind == -1 || ind == 0 || ind > 8) {
    puts("NO");
    return;
  }
  int size = 0;
  for (int i = ind + 1; i < len; i++) {
    if (str[i] == '.') {
      int d = i - ind - 1;
      if (d < 2 || d > 11) {
        puts("NO");
        return;
      }
      if (d <= 3) {
        for (int j = ind + 1; j < ind + 1 + 1; j++) tmp += str[j];
        s[size++] = tmp;
        tmp = "";
        for (int j = ind + 2; j <= i; j++) tmp += str[j];
        ind = i;
      } else {
        for (int j = ind + 1; j < ind + 1 + 3; j++) tmp += str[j];
        s[size++] = tmp;
        tmp = "";
        for (int j = ind + 4; j <= i; j++) tmp += str[j];
        ind = i;
      }
    }
  }
  if (len - ind - 1 <= 0 || len - ind - 1 > 3) {
    puts("NO");
    return;
  }
  for (int i = ind + 1; i < len; i++) tmp += str[i];
  s[size++] = tmp;
  puts("YES");
  for (int i = 0; i < size; i++) cout << s[i] << endl;
}
int main() {
  while (~scanf("%s", str)) {
    solve();
  }
}
