Problem: ZS the Coder loves to read the dictionary. He thinks that a word is nice if there exists a substring (contiguous segment of letters) of it of length 26 where each letter of English alphabet appears exactly once. In particular, if the string has length strictly less than 26, no such substring exists and thus it is not nice.

Now, ZS the Coder tells you a word, where some of its letters are missing as he forgot them. He wants to determine if it is possible to fill in the missing letters so that the resulting word is nice. If it is possible, he needs you to find an example of such a word as well. Can you help him?

Input

The first and only line of the input contains a single string s (1 ≤ |s| ≤ 50 000), the word that ZS the Coder remembers. Each character of the string is the uppercase letter of English alphabet ('A'-'Z') or is a question mark ('?'), where the question marks denotes the letters that ZS the Coder can't remember.

Output

If there is no way to replace all the question marks with uppercase letters such that the resulting word is nice, then print  - 1 in the only line.

Otherwise, print a string which denotes a possible nice word that ZS the Coder learned. This string should match the string from the input, except for the question marks replaced with uppercase English letters.

If there are multiple solutions, you may print any of them.

Examples

Input

ABC??FGHIJK???OPQR?TUVWXY?


Output

ABCDEFGHIJKLMNOPQRZTUVWXYS

Input

WELCOMETOCODEFORCESROUNDTHREEHUNDREDANDSEVENTYTWO


Output

-1

Input

??????????????????????????


Output

MNBVCXZLKJHGFDSAQPWOEIRUYT

Input

AABCDEFGHIJKLMNOPQRSTUVW??M


Output

-1

Note

In the first sample case, ABCDEFGHIJKLMNOPQRZTUVWXYS is a valid answer beacuse it contains a substring of length 26 (the whole string in this case) which contains all the letters of the English alphabet exactly once. Note that there are many possible solutions, such as ABCDEFGHIJKLMNOPQRSTUVWXYZ or ABCEDFGHIJKLMNOPQRZTUVWXYS.

In the second sample case, there are no missing letters. In addition, the given string does not have a substring of length 26 that contains all the letters of the alphabet, so the answer is  - 1.

In the third sample case, any string of length 26 that contains all letters of the English alphabet fits as an answer.

Solution (in JAVA):

Solution:
  import java.util.*; 
            import java.math.*;
            import java.io.*;
            import java.text.DecimalFormat;
            import java.math.BigInteger;
            public class Main{
                //static int d=20;
                static long mod=1000000007 ;
                //static HashMap<String,Integer> hm=new HashMap<>(); 
                static ArrayList<ArrayList<Integer>> arr,arr2;
                static int size;
                //static int[] vis;
                public static void main(String[] args)  throws IOException {
                    boolean online =false;
                    String fileName = "C-large";
                    PrintWriter out;
                    if (online) {
                        s.init(new FileInputStream(new File(fileName + ".in")));
                         out= new PrintWriter(new FileWriter(fileName + "out.txt"));
                    }
                     else {
                        s.init(System.in);   
                    
                        out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
                    }
                    int a[]=new int[26];
                    String b=s.ns();
                    int add=0;
                    int[] last=new int[26];
                    Arrays.fill(last,-1);
                    //ArrayList<Integer> arr=new ArrayList<>();
                    int start=0;
                    StringBuilder ans=new StringBuilder();
                    for(int i=0;i<b.length();i++){
                        char ch=b.charAt(i);
                        

                        int x=ch-'A';

                        if(ch!='?' &&  last[x]==-1)
                            last[x]=i;
                        else if(ch!='?'){
                            start=last[x]+1;
                            last[x]=i;
                            for(int j=0;j<26;j++){
                                if(last[j]<start)
                                    last[j]=-1;
                            }
                          
                        }
                        if((i-start+1)==26){
                            
                            int id=0;
                            for(int j=0;j<start;j++){
                                char ch1=b.charAt(j);
                                if(ch1!='?')
                                    ans.append(ch1+"");
                                else
                                    ans.append('A'+"");
                            }

                            for(int j=start;j<=i;j++){
                                //out.println(j+" "+start+" "+i+" "+ans);
                                char ch1=b.charAt(j);
                                if(ch1!='?')
                                    ans.append(ch1+"");
                                else{
                                    for(;id<26;id++){
                                        if(last[id]==-1){
                                            //last[id]++;
                                            ans.append((char)(id+'A')+"");
                                            last[id]++;
                                            break;
                                        }
                                            
                                    }
                                }
                            }
                            for(int j=i+1;j<b.length();j++){
                                char ch1=b.charAt(j);
                                if(ch1!='?')
                                    ans.append(ch1+"");
                                else
                                    ans.append('A'+"");
                            }
                            break;

                        }
                    }
                    if(ans.toString().length()!=b.length() || ans.toString().length()<26)
                        out.println(-1);
                    else{
                        out.println(ans.toString());
                    }

                    out.close();
                    
                }
              
                
                public static long pow(long x,long y){
                    long ans=1;
                    while(y>0){
                        if(y%2==1)
                            ans=(ans*x);
                        x=(x*x);
                        y/=2;
                    }
                    return ans;
     
                }
     
                 static class name implements Comparable<name> {
                    String a;
                    int num;
                    public name(String x,int y){
                        a=x;
                        num=y;
                    }
                    public int compareTo(name o){
                        if (num!=o.num){
                            return o.num-num;
                        }
                        else
                            return a.compareTo(o.a);
                    }
                }
                public static class s {
                    static BufferedReader reader;
                    static StringTokenizer tokenizer;
                
                    /** call this method to initialize reader for InputStream */
                    static void init(InputStream input) {
                        reader = new BufferedReader(
                                    new InputStreamReader(input) );
                        tokenizer = new StringTokenizer("");
                    }   
                
                    /** get next word */
                    static String ns() throws IOException {
                        while ( ! tokenizer.hasMoreTokens() ) {
                            //TODO add check for eof if necessary
                            tokenizer = new StringTokenizer(
                                reader.readLine() );
                        }
                        return tokenizer.nextToken();
                    }
                
                    static int ni() throws IOException {
                        return Integer.parseInt( ns() );
                    }
                
                    static double nd() throws IOException {
                        return Double.parseDouble( ns() );
                    }
                    static long nl() throws IOException {
                        return Long.parseLong( ns() );
                    }
                    
                }
            }