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.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringTokenizer;

public class Main {

    FastScanner in;
    PrintWriter out;

    Main() {
        in = new FastScanner(IO_Type.CONSOLE).getScanner();
        out = new FastWriter(IO_Type.CONSOLE).getWriter();

        // in = new FastScanner(IO_Type.TEST, "test.txt").getScanner();
        // out = new FastWriter(IO_Type.TEST, "result.txt").getWriter();

        // in = new FastScanner(IO_Type.FILE, "input.txt").getScanner();
        // out = new FastWriter(IO_Type.TEST, "output.txt").getWriter();
    }

    public static void main(String[] args) {
        Main task = new Main();
        task.solveB();
        task.close();
    }

    public void close() {
        in.close();
        out.close();
    }

    public void solveB() {
        String s = in.next();
        ArrayList<String>answer = new ArrayList<String>();
        String[]tab = s.split("\\.");
        for (int i = 0; i < tab.length; i++) {
            if (tab[i].length() == 0 || tab[i].length() > 11) {
                System.out.println("NO");
                return;
            }
        }
        if (tab.length==1) {
            System.out.println("NO");
            return;
        }
        if (s.charAt(0) == '.' || s.charAt(s.length() - 1) == '.' ) {
            System.out.println("NO");
            return;
        }

        if (tab[tab.length - 1].length() > 3) {
            System.out.println("NO");
            return;
        }
        if (tab[0].length() > 8) {
            System.out.println("NO");
            return;
        }
        
        for (int i = 0; i < tab.length; i++) {
            if (i == 0 || i == tab.length - 1) {
                answer.add(tab[i]);
            }
            else {
                String tmp = tab[i];
                int first = 0;
                int second = 0;
                if (tmp.length() == 1) {
                    System.out.println("NO");
                    return;
                }
                if (tmp.length() == 2) {                    
                    first = 1;
                    second = 1;
                }
                if (tmp.length() == 3) {
                    first = 1;
                    second = 2;
                }
                if (tmp.length() == 4) {
                    first = 1;
                    second = 3;
                }
                if (tmp.length() == 5) {
                    first = 1;
                    second = 4;
                }
                if (tmp.length() == 6) {
                    first = 1;
                    second = 5;
                }
                if (tmp.length() == 7) {
                    first = 1;
                    second = 6;
                }
                if (tmp.length() == 8) {
                    first = 1;
                    second = 7;
                }
                if (tmp.length() == 9) {
                    first = 1;
                    second = 8;
                }
                if (tmp.length() == 10) {
                    first = 2;
                    second = 8;
                }
                if (tmp.length() == 11) {
                    first = 3;
                    second = 8;
                }
                StringBuilder sb = new StringBuilder();
                for (int j = 0; j < first; j++) {
                    sb.append(tmp.charAt(j));
                }
                String a = sb.toString();
                sb = new StringBuilder();
                for (int j = first; j < tmp.length(); j++) {
                    sb.append(tmp.charAt(j));
                }
                String b = sb.toString();
                answer.add(a);
                answer.add(b);
            }
        }
        
        System.out.println("YES");
        for (int i = 0; i < answer.size(); i+=2) {
            System.out.print(answer.get(i));
            System.out.print(".");
            System.out.print(answer.get(i + 1));
            System.out.println();
        }
    }
    
    public void solve() {
        int n = in.nextInt();
        int[]tab = new int[n];
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            tab[i] = in.nextInt();
            if (tab[i] < min) min = tab[i];
        }
        
        ArrayList<Integer>answer = new ArrayList<Integer>();
        
        
        
        
        out.println(answer.size() / 2 + min);
        for (int i = 0; i < min; i++) {
            out.println(1);
            out.print("");
            out.print(n);
        }
        
        
        
    }
}

class Algebra {
    /****
     * Number of co-prime numbers on [1, n]. Number a is Co-prime if gcd (a, n)
     * == 1 O (sqrt(n))
     ****/
    public static int phi(int n) {
        int result = n;
        for (int i = 2; i * i <= n; ++i) {
            if (n % i == 0) {
                while (n % i == 0) {
                    n /= i;
                }
                result -= result / i;
            }
        }
        if (n > 1) {
            result -= result / n;
        }
        return result;
    }

    /****
     * Raise number a to power of n. O (log n)
     ****/
    public static int binpow(int a, int n) {
        int res = 1;
        while (n != 0) {
            if ((n & 1) == 1)
                res *= a;
            a *= a;
            n >>= 1;
        }
        return res;
    }

    /****
     * Finding the greatest common divisor of two numbers. O (log min(a, b))
     ****/
    public static int gcd(int a, int b) {
        return (b != 0) ? gcd(b, a % b) : a;
    }

    /****
     * Finding the lowest common multiple of two numbers. O (log min(a, b))
     ****/
    public static int lcm(int a, int b) {
        return a / gcd(a, b) * b;
    }

    /****
     * Eratosthenes Sieve of numbers - [0..n]. True - simple, False - not
     * simple. O (n log log n)
     ****/
    public static boolean[] sieveOfEratosthenes(int n) {
        boolean[] prime = new boolean[n + 1];
        Arrays.fill(prime, true);
        prime[0] = prime[1] = false;
        for (int i = 2; i <= n; ++i) {
            if (prime[i]) {
                if (i * 1L * i <= n) {
                    for (int j = i * i; j <= n; j += i) {
                        prime[j] = false;
                    }
                }
            }
        }
        return prime;
    }
}

class IO_Type {

    public static String CONSOLE = "console";
    public static String FILE = "file";
    public static String TEST = "test";

}

class FastScanner {

    BufferedReader br;
    StringTokenizer st;

    FastScanner getScanner() {
        return this;
    }

    FastScanner(String type) {
        if (type.equals("console")) {
            FastScanner(System.in);
        }
    }

    FastScanner(String type, String inFileName) {
        if (type.equals("file")) {
            File f = new File(inFileName);
            try {
                FastScanner(new FileInputStream(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        } else if (type.equals("test")) {
            File f = new File(inFileName);
            try {
                FastScanner(new FileInputStream(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }
    }

    void FastScanner(InputStream in) {
        br = new BufferedReader(new InputStreamReader(in));
    }

    String next() {
        while (st == null || !st.hasMoreTokens()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (IOException e) {
                System.err.println(e);
                return "";
            }
        }
        return st.nextToken();
    }

    int nextInt() {
        return Integer.parseInt(next());
    }

    long nextLong() {
        return Long.parseLong(next());
    }

    double nextDouble() {
        return Double.parseDouble(next());
    }

    float nextFloat() {
        return Float.parseFloat(next());
    }

    BigInteger nextBigInt() {
        return new BigInteger(next());
    }

    void close() {
        try {
            br.close();
        } catch (IOException e) {
        }
    }
}

class FastWriter {

    PrintWriter pw;

    PrintWriter getWriter() {
        return pw;
    }

    FastWriter(String type) {
        FastWriter(type);
    }

    FastWriter(String type, String outFileName) {
        FastWriter(type, outFileName);
    }

    PrintWriter FastWriter(String type) {
        if (type.equals("console")) {
            pw = new PrintWriter(System.out);
        }
        return pw;
    }

    PrintWriter FastWriter(String type, String outFileName) {
        if (type.equals("console")) {
            pw = new PrintWriter(System.out);
        } else if (type.equals("test")) {
            try {
                pw = new PrintWriter(new File(outFileName));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        } else if (type.equals("file")) {
            try {
                pw = new PrintWriter(new File(outFileName));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }
        return pw;
    }

}