Given are two sequences A and B, both of length N. A and B are each sorted in the ascending order. Check if it is possible to reorder the terms of B so that for each i (1 \leq i \leq N) A_i \neq B_i holds, and if it is possible, output any of the reorderings that achieve it.

Constraints

* 1\leq N \leq 2 \times 10^5
* 1\leq A_i,B_i \leq N
* A and B are each sorted in the ascending order.
* All values in input are integers.

Input

Input is given from Standard Input in the following format:


N
A_1 A_2 \cdots A_N
B_1 B_2 \cdots B_N


Output

If there exist no reorderings that satisfy the condition, print `No`.

If there exists a reordering that satisfies the condition, print `Yes` on the first line. After that, print a reordering of B on the second line, separating terms with a whitespace.

If there are multiple reorderings that satisfy the condition, you can print any of them.

Examples

Input

6
1 1 1 2 2 3
1 1 1 2 2 3


Output

Yes
2 2 3 1 1 1


Input

3
1 1 2
1 1 3


Output

No


Input

4
1 1 2 3
1 2 3 3


Output

Yes
3 3 1 2
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        solvemain();
        int trying = 100;
        while (trying-- > 0) {
            // solvemain();
        }
    }
    
    public static void solvemain() {
        Scanner sc = new Scanner(System.in);
        Random random = new Random();
        int n = sc.nextInt();
        int[] a = new int[n];
        int[] b = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            b[i] = sc.nextInt();
        }
        Arrays.sort(a);
        Arrays.sort(b);
        
        boolean ok = true;
        int max = 0;
        int[] count = new int[200001];
        for (int i = 0; i < n; i++) {
            count[a[i]]++;
            count[b[i]]++;
        }
        for (int i = 0; i < 200001; i++) {
            max = Math.max(max, count[i]);
        }
        if (max > n) ok = false;
        
        if (!ok) {
            System.out.println("No");
            return;
        }
        
        // 12333345
        // 23334561
        
        int[] ans = new int[n];
        int offset = 0;
        while (true) {
            // System.out.println(offset);
            for (int i = 0; i < n; i++) {
                ans[(i+offset)%n] = b[i];
            }
            
            // System.out.println(Arrays.toString(a));
            // System.out.println(Arrays.toString(ans));
            
            boolean ok2 = true;
            int ng_length = 0;
            for (int i = 0; i < n; i++) {
                if (ans[i] == a[i]) {
                    ok2 = false;
                    
                    int tmp = a[i];
                    for (int j = i; j < n; j++) {
                        if (a[j] == tmp) {
                            // System.out.println(a[j] + " " + j + " " + tmp);
                            ng_length++;
                        } else {
                            break;
                        }
                    }
                    break;
                }
            }
            // System.out.println("0" + ng_length);
            
            if (ok2) {
                break;
            } else {
                if (ng_length == 0) {
                    offset++;
                } else {
                    offset += ng_length;
                }
            }
        }
        
        System.out.println("Yes");
        for (int i = 0; i < n; i++) {
            System.out.print(ans[i]);
            if (i != n-1) {
                System.out.print(" ");
            } else {
                System.out.println();
            }
        }
        
        // System.out.println(Arrays.toString(a));
        // System.out.println(Arrays.toString(b));
        // System.out.println(Arrays.toString(ans));
    }
    
    public static void solve() {
        Scanner sc = new Scanner(System.in);
        Random random = new Random();
        int n = 6;
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = random.nextInt(3);
        }
        int[] b = new int[n];
        for (int i = 0; i < n; i++) {
            b[i] = random.nextInt(3);
        }
        Arrays.sort(a);
        Arrays.sort(b);
        
        // 順列全探索
        boolean ok = false;
        do {
            boolean ok2 = true;
            for (int i = 0; i < n; i++) {
                if (a[i] == b[i]) {
                    ok2 = false;
                }
            }
            
            if (ok2) {
                ok = true;
                break;
            }
        } while (nextPermutation(b));
        
        if (ok) {
            System.out.println(Arrays.toString(a));
            System.out.println(Arrays.toString(b));
            System.out.println();
        }
        
        // NG:
        // n-mapa.get(0) >= mapb.get(0)
    }
    
    public static boolean nextPermutation(int[] array) {
        for (int i = array.length - 1; i > 0; i--) {
            if (array[i - 1] < array[i]) {
                int j = find(array, array[i - 1], i, array.length - 1);
                int temp = array[j];
                array[j] = array[i - 1];
                array[i - 1] = temp;
                Arrays.sort(array, i, array.length);
                return true;
            }
        }
        return false;
    }
	 
    private static int find(int[] array, int dest, int f, int l) {
        if (f == l) return f;
        
        int m = (f + l + 1) / 2;
        return (array[m] <= dest) ? find(array, dest, f, m - 1) : find(array, dest, m, l);
    }
}