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.Scanner;
import java.io.*;
import java.util.*;
import java.math.*;
import java.lang.*;
import static java.lang.Math.*;
 
public class Main implements Runnable{
 
	static class InputReader
	{
		private InputStream stream;
		private byte[] buf = new byte[1024];
		private int curChar;
		private int numChars;
		private SpaceCharFilter filter;
		
		public InputReader(InputStream stream)
		{
			this.stream = stream;
		}
		
		public int read()
		{
			if (numChars==-1) 
				throw new InputMismatchException();
			
			if (curChar >= numChars)
			{
				curChar = 0;
				try 
				{
					numChars = stream.read(buf);
				}
				catch (IOException e)
				{
					throw new InputMismatchException();
				}
				
				if(numChars <= 0)				
					return -1;
			}
			return buf[curChar++];
		}
	 
		public String nextLine()
		{
			BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
			String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
		}
		public int nextInt()
		{
			int c = read();
			
			while(isSpaceChar(c)) 
				c = read();
			
			int sgn = 1;
			
			if (c == '-') 
			{
				sgn = -1;
				c = read();
			}
			
			int res = 0;
			do 
			{
				if(c<'0'||c>'9') 
					throw new InputMismatchException();
				res *= 10;
				res += c - '0';
				c = read();
			}
			while (!isSpaceChar(c)); 
			
			return res * sgn;
		}
		
		public long nextLong() 
		{
			int c = read();
			while (isSpaceChar(c))
				c = read();
			int sgn = 1;
			if (c == '-') 
			{
				sgn = -1;
				c = read();
			}
			long res = 0;
			
			do 
			{
				if (c < '0' || c > '9')
					throw new InputMismatchException();
				res *= 10;
				res += c - '0';
				c = read();
			}
			while (!isSpaceChar(c));
				return res * sgn;
		}
		
		public double nextDouble() 
		{
			int c = read();
			while (isSpaceChar(c))
				c = read();
			int sgn = 1;
			if (c == '-') 
			{
				sgn = -1;
				c = read();
			}
			double res = 0;
			while (!isSpaceChar(c) && c != '.') 
			{
				if (c == 'e' || c == 'E')
					return res * Math.pow(10, nextInt());
				if (c < '0' || c > '9')
					throw new InputMismatchException();
				res *= 10;
				res += c - '0';
				c = read();
			}
			if (c == '.') 
			{
				c = read();
				double m = 1;
				while (!isSpaceChar(c)) 
				{
					if (c == 'e' || c == 'E')
						return res * Math.pow(10, nextInt());
					if (c < '0' || c > '9')
						throw new InputMismatchException();
					m /= 10;
					res += (c - '0') * m;
					c = read();
				}
			}
			return res * sgn;
		}
		
		public String readString() 
		{
			int c = read();
			while (isSpaceChar(c))
				c = read();
			StringBuilder res = new StringBuilder();
			do 
			{
				res.appendCodePoint(c);
				c = read();
			} 
			while (!isSpaceChar(c));
			
			return res.toString();
		}
	 
		public boolean isSpaceChar(int c) 
		{
			if (filter != null)
				return filter.isSpaceChar(c);
			return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
		}
	 
		public String next() 
		{
			return readString();
		}
		
		public interface SpaceCharFilter 
		{
			public boolean isSpaceChar(int ch);
		}
	}
	static LinkedList <Integer> adj[];
    static int co=0,f=0;
    
    static void Check2(int n){
        adj=new LinkedList[n+1];
        for(int i=0;i<=n;i++){
            adj[i]=new LinkedList();
        }
        
    }
    static void add(int i,int j){
       // if(!adj[i].contains(j))
        adj[i].add(j);
   // if(!adj[j].contains(i))
        adj[j].add(i);
        
     //   adj[j].add(i);
        
    }
	  public static void main(String[] args) throws Exception { 
    new Thread(null, new Main(), "Check2", 1<<26).start();// to increse stack size in java 
  }
  public void run(){
        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
        //Scanner in=new Scanner(System.in);
    InputReader in=new InputReader(System.in);		
		PrintWriter w=new PrintWriter(System.out);
	
 
		
 String s=in.next();
      
      char c[]=s.toCharArray();
      
      
      
     int n=c.length;    // some substring not all
      if(n<26){
          w.println("-1");
          w.close();
          return ;
      }
      int f[]=new int[26];
      int ques=0;
      int flag=0;
      for(int i=0;i<26;i++){
         if(c[i]!='?')
          f[c[i]-65]++;
         else
             ques++;
      }
         int co=0;
      int g=0;
          for(int j=0;j<26;j++){
              if(f[j]==0)co++;
              if(f[j]>1)g=1;
          }
      if(co==ques&&g!=1){
          flag=1;
          
          for(int i=0;i<26;i++){
              
              if(c[i]=='?'){
                  int ans=0;
                  for(int j=0;j<26;j++){
                        if(f[j]==0){
                                ans=j;
                            f[j]=1;
                            break;
                        }                      
                  }
                  c[i]=(char)(ans+65);
              }
          }
          
          
          
          
      }
      for(int i=26;i<n&&flag==0;i++){
          
          
          if(c[i-26]!='?')
          f[c[i-26]-65]--;
          else
              ques--;
          if(c[i]!='?')
          
          f[c[i]-65]++;
          else
              ques++;
        co=0;
          g=0;
          
          for(int j=0;j<26;j++){
              if(f[j]==0)co++;
              if(f[j]>1)g=1;
          }
 //         w.println(i+" "+co+" "+ques+" "+g);
          if(co==ques&&g==0){
           flag=1;   
                for(int ie=i-26+1;ie<=i;ie++){
              
              if(c[ie]=='?'){
                  int ans=0;
                  for(int j=0;j<26;j++){
                        if(f[j]==0){
                                ans=j;
                            f[j]=1;
                            break;
                        }                      
                  }
                  c[ie]=(char)(ans+65);
              }
          }
        
          }
          
          
          
      }
      if(flag==0){
          w.println("-1");
      }
      else{
          
          
          for(int i=0;i<c.length;i++){
              if(c[i]=='?')c[i]='A';
          }
          w.println(String.valueOf(c));
      }
      
      
      
      
      
      
        w.close();
        
           
    }
    
    static void dfs(int i,int v[]){
        if(v[i]==1){
            return ;
        }
        else{
            
            v[i]=1;
            Iterator <Integer>p=adj[i].iterator();
            while(p.hasNext()){
                 Integer ne=p.next();
                
                    
                    
              dfs(ne,v);
     //          
       //        System.out.println(q+" "+i);
            //System.out.println(i+" "+max1+" "+max2);
            }
            
            
            
            
            
        }
        
        
    }
    static class node{
        
        int y;
        int val;
        
        node(int a,int b){
            
            y=a;
            val=b;
            
        }
        
        
    }
    
}