#include <bits/stdc++.h>
using namespace std;
char s[400005];
int main() {
  cin >> s;
  int num = 0;
  int i;
  bool f = false;
  int n = strlen(s);
  for (i = 0; i < n; i++) {
    if (s[i] == '.') {
      break;
    }
  }
  if (i == n) f = 1;
  if (i == 0 || i > 8) f = 1;
  int u = i;
  for (i = n - 1; i >= 0; i--) {
    if (s[i] == '.') break;
  }
  if ((n - i - 1) == 0 || (n - i - 1) > 3) f = 1;
  int v = i;
  for (i = u + 1; i <= v; i++) {
    if (s[i] != '.')
      num++;
    else {
      if (num > 11 || num < 2) {
        f = 1;
        break;
      }
      num = 0;
    }
  }
  if (f)
    printf("NO\n");
  else {
    printf("YES\n");
    num = 0;
    for (i = 0; i < u; i++) printf("%c", s[i]);
    int pre = u;
    for (i = u + 1; i <= v; i++) {
      if (s[i] != '.') {
        num++;
      } else {
        if (num > 3) {
          for (int j = pre; j < pre + 4; j++) printf("%c", s[j]);
          printf("\n");
          for (int j = pre + 4; j <= pre + num; j++) {
            printf("%c", s[j]);
          }
        } else {
          for (int j = pre; j < pre + 2; j++) printf("%c", s[j]);
          printf("\n");
          for (int j = pre + 2; j <= pre + num; j++) {
            printf("%c", s[j]);
          }
        }
        num = 0;
        pre = i;
      }
    }
    for (int i = v; i < n; i++) printf("%c", s[i]);
    printf("\n");
  }
  return 0;
}
