Problem: Overlooking the captivating blend of myriads of vernal hues, Arkady the painter lays out a long, long canvas.

Arkady has a sufficiently large amount of paint of three colours: cyan, magenta, and yellow. On the one-dimensional canvas split into n consecutive segments, each segment needs to be painted in one of the colours.

Arkady has already painted some (possibly none or all) segments and passes the paintbrush to you. You are to determine whether there are at least two ways of colouring all the unpainted segments so that no two adjacent segments are of the same colour. Two ways are considered different if and only if a segment is painted in different colours in them.

Input

The first line contains a single positive integer n (1 ≤ n ≤ 100) — the length of the canvas.

The second line contains a string s of n characters, the i-th of which is either 'C' (denoting a segment painted in cyan), 'M' (denoting one painted in magenta), 'Y' (one painted in yellow), or '?' (an unpainted one).

Output

If there are at least two different ways of painting, output "Yes"; otherwise output "No" (both without quotes).

You can print each character in any case (upper or lower).

Examples

Input

5
CY??Y


Output

Yes


Input

5
C?C?Y


Output

Yes


Input

5
?CYC?


Output

Yes


Input

5
C??MM


Output

No


Input

3
MMY


Output

No

Note

For the first example, there are exactly two different ways of colouring: CYCMY and CYMCY.

For the second example, there are also exactly two different ways of colouring: CMCMY and CYCMY.

For the third example, there are four ways of colouring: MCYCM, MCYCY, YCYCM, and YCYCY.

For the fourth example, no matter how the unpainted segments are coloured, the existing magenta segments will prevent the painting from satisfying the requirements. The similar is true for the fifth example.

Solution (in JAVA):

Solution:
//package CFMAR24;

import java.io.*;
import java.util.*;

public class Q2{

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader() {
            reader = new BufferedReader(new InputStreamReader(System.in), 32768);
            tokenizer = null;
        }

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(System.in), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public char nextChar() {
            return next().charAt(0);
        }

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

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

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

    public static void main(String[] args) {

        InputReader in=new InputReader();

        int length=in.nextInt();
        String input=in.next();


        char prv='{',curr=input.charAt(0),future;

        if(length==1){
            if(input.charAt(0)=='?'){
                System.out.println("Yes");
                return;
            }
        }

        for(int i=1;i<length;i++) {

            future = input.charAt(i);

            if ((future == curr || prv == curr) && (curr != '?')) {

                System.out.println("No");
                return;
            }

            prv=curr;
            curr=future;

        }


         prv='{';
        curr=input.charAt(0);


        for(int i=1;i<length;i++){

            future=input.charAt(i);


            if(curr=='?'){
                if(prv==future){
                    System.out.println("Yes");
                    return;
                }

                if(future=='?' || prv=='?'){
                    System.out.println("Yes");
                    return;
                }
            }

            if(curr=='?'  && i==1){
                System.out.println("Yes");
                return;
            }

            if(future=='?'  && i==length-1){
                System.out.println("Yes");
                return;
            }

            prv=curr;
            curr=future;


        }


        System.out.println("No");










    }






//    public static void main(String[] args){
//
//        InputReader in=new InputReader();
//        int N=in.nextInt();
//        int M=in.nextInt();
//
//        String input1[]=new String[N];
//
//        for(int i=0;i<N;i++){
//            input1[i]=in.next();
//        }
//
//
//        char input[][]=new char[N][M];
//
//        for(int l=0;l<N;l++){
//            for(int j=0;j<M;j++)
//              input[l][j]=input1[l].charAt(j);
//        }
//
//       // int ans1[]=new int[N];
//
//
//        int flag=0;
//        int ans[][]=new int[N][M];
//
//        for(int i=0;i<N;i++){
//             flag=0;
//
//            for(int j=0;j<M;j++){
//
//                if(input[i][j]=='#'){
//
//                    if(ans[i][j]!=0 && flag==0){
//                    //    ans1[ans[i][j]]++
//                        continue;
//                    }else{
//                        flag=1;
//                    }
//
//
//
//                    for(int k=i;k<N;k++){
//
//                        if(input[k][j]=='#' ){
//
//                            if(ans[k][j]!=0){
//                                System.out.println("No");
//                                return;
//                            }
//                            ans[k][j]=i+1;
//                      //      ans1[i]++;
//                        }
//
//                    }
//
//
//
//
//                }
//
//
//            }
//        }
//
//        int sol[]=new int[N];
//if(N!=1) {
//    for (int l = 0; l < N; l++) {
//        int count = 0;
//        int val = 0;
//        for (int j = 0; j < M; j++) {
//            if (ans[l][j] != 0) {
//                val = ans[l][j];
//                count++;
//            }
//
//        }
//
//        if (sol[val] == 0) {
//            sol[val] = count;
//            continue;
//        }
//
//        if (sol[val] != count) {
//            System.out.println("No");
//            return;
//        }
//
//        //  System.out.println();
//    }
//
//
//    System.out.println("Yes");
//
//
//}
//    }
}