Problem: Eudokimus, a system administrator is in trouble again. As a result of an error in some script, a list of names of very important files has been damaged. Since they were files in the BerFS file system, it is known that each file name has a form "name.ext", where: 

  * name is a string consisting of lowercase Latin letters, its length is from 1 to 8 characters; 
  * ext is a string consisting of lowercase Latin letters, its length is from 1 to 3 characters. 



For example, "read.me", "example.txt" and "b.cpp" are valid file names and "version.info", "ntldr" and "contestdata.zip" are not.

Damage to the list meant that all the file names were recorded one after another, without any separators. So now Eudokimus has a single string.

Eudokimus needs to set everything right as soon as possible. He should divide the resulting string into parts so that each part would be a valid file name in BerFS. Since Eudokimus has already proved that he is not good at programming, help him. The resulting file list can contain the same file names.

Input

The input data consists of a single string s, its length is from 1 to 4·105 characters. The string can contain only lowercase Latin letters ('a' - 'z') and periods ('.').

Output

In the first line print "YES" (without the quotes), if it is possible to divide s into parts as required. In this case, the following lines should contain the parts of the required partition, one per line in the order in which they appear in s. The required partition can contain the same file names. If there are multiple solutions, print any of them.

If the solution does not exist, then print in a single line "NO" (without the quotes).

Examples

Input

read.meexample.txtb.cpp


Output

YES
read.m
eexample.t
xtb.cpp


Input

version.infontldrcontestdata.zip


Output

NO

Solution (in JAVA):

Solution:
    import java.awt.Point;
    import java.io.*;
    import java.lang.reflect.Array;
    import java.math.BigInteger;
    import java.util.*;
    
    import static java.lang.Math.*;
    
    public class Start {
    
        final boolean ONLINE_JUDGE = System.getProperty("ONLINE_JUDGE") != null;
        BufferedReader in;
        PrintWriter out;
        StringTokenizer tok = new StringTokenizer("");
    
        void init() throws FileNotFoundException {
            if (ONLINE_JUDGE) {
                in = new BufferedReader(new InputStreamReader(System.in));
                out = new PrintWriter(System.out);
            } else {
                in = new BufferedReader(new FileReader("input.txt"));
                out = new PrintWriter("output.txt");
            }
        }
    
        String readString() throws IOException {
            while (!tok.hasMoreTokens()) {
                tok = new StringTokenizer(in.readLine());
            }
            return tok.nextToken();
        }
    
        int readInt() throws IOException {
            return Integer.parseInt(readString());
        }
    
        long readLong() throws IOException {
            return Long.parseLong(readString());
        }
    
        double readDouble() throws IOException {
            return Double.parseDouble(readString());
        }
    
        public static void main(String[] args) {
            new Start().run();
        }
    
        public static void mergeSort(int[] a) {
            mergeSort(a, 0, a.length - 1);
        }
    
        private static void mergeSort(int[] a, int levtIndex, int rightIndex) {
            final int MAGIC_VALUE = 50;
            if (levtIndex < rightIndex) {
                if (rightIndex - levtIndex <= MAGIC_VALUE) {
                    insertionSort(a, levtIndex, rightIndex);
                } else {
                    int middleIndex = (levtIndex + rightIndex) / 2;
                    mergeSort(a, levtIndex, middleIndex);
                    mergeSort(a, middleIndex + 1, rightIndex);
                    merge(a, levtIndex, middleIndex, rightIndex);
                }
            }
        }
    
        private static void merge(int[] a, int levtIndex, int middleIndex,
                int rightIndex) {
            int length1 = middleIndex - levtIndex + 1;
            int length2 = rightIndex - middleIndex;
            int[] levtArray = new int[length1];
            int[] rightArray = new int[length2];
            System.arraycopy(a, levtIndex, levtArray, 0, length1);
            System.arraycopy(a, middleIndex + 1, rightArray, 0, length2);
            for (int k = levtIndex, i = 0, j = 0; k <= rightIndex; k++) {
                if (i == length1) {
                    a[k] = rightArray[j++];
                } else if (j == length2) {
                    a[k] = levtArray[i++];
                } else {
                    a[k] = levtArray[i] <= rightArray[j] ? levtArray[i++]
                            : rightArray[j++];
                }
            }
        }
    
        private static void insertionSort(int[] a, int levtIndex, int rightIndex) {
            for (int i = levtIndex + 1; i <= rightIndex; i++) {
                int current = a[i];
                int j = i - 1;
                while (j >= levtIndex && a[j] > current) {
                    a[j + 1] = a[j];
                    j--;
                }
                a[j + 1] = current;
            }
        }
    
        public void run() {
            try {
                long t1 = System.currentTimeMillis();
                init();
                solve();
                out.close();
                long t2 = System.currentTimeMillis();
                System.err.println("Time = " + (t2 - t1));
            } catch (Exception e) {
                e.printStackTrace(System.err);
                System.exit(-1);
            }
        }
    
        class LoL implements Comparable<LoL> {
            int x;
            int y;
    
            public LoL(int x, int y) {
                this.x = x;
                this.y = y;
            }
    
            @Override
            public int compareTo(LoL arg0) {
                if (arg0.x == x) {
                    return y - arg0.y;
                }
                return arg0.x - x;
            }
    
        }
    
        public void solve() throws IOException {
             
             String s = readString();
             char [] c = s.toCharArray(); 
             int n = c.length; 
             
             if (c[n-1]=='.' || c[0]=='.'){
                 out.print("NO");
                 return;
             }
             
             
             ArrayList<String> ans = new ArrayList<String>();
             String temp = "";
             for (int i = 0; i <n;  i++){
                 if (c[i]!='.'){
                     temp+=c[i];
                     if (temp.length()>8){
                         out.print("NO");
                         return;
                     }
                 }
                 else {
                     if (temp.isEmpty())
                     {
                         out.print("NO");
                         return;
                     }
                     else{
                         temp +=c[i];
                         int j = 0;
                         for (j = 1; j <=3; j++){
                             if (i+j<n){
                                 if (c[i+j]!='.'){
                                     if (i+j+1<n){
                                         if (c[i+j+1]!='.')
                                             temp+=c[i+j];
                                         else{
                                             break;
                                         }
                                     }
                                     else{
                                         if (i+j+1==n){
                                             temp+=c[i+j];
                                         }
                                     }
                                 }
                                 else {
                                     break;
                                 }
                             }
                             else {
                                 break;
                             }
                         }
                         i = i + j-1;
                         if (temp.charAt(temp.length()-1)=='.'){
                                out.println("NO");
                                return;
                         }
                         ans.add(temp);
                         temp = "";
                     }
                 }
             }
            if(!temp.isEmpty()){
                out.println("NO");
                return;
            }
            out.println("YES");
            for (int i =0 ; i <ans.size(); i++){
                out.println(ans.get(i));
            }
            
        }
        

    }