Vasya has a multiset s consisting of n integer numbers. Vasya calls some number x nice if it appears in the multiset exactly once. For example, multiset \{1, 1, 2, 3, 3, 3, 4\} contains nice numbers 2 and 4.

Vasya wants to split multiset s into two multisets a and b (one of which may be empty) in such a way that the quantity of nice numbers in multiset a would be the same as the quantity of nice numbers in multiset b (the quantity of numbers to appear exactly once in multiset a and the quantity of numbers to appear exactly once in multiset b).

Input

The first line contains a single integer n~(2 ≤ n ≤ 100).

The second line contains n integers s_1, s_2, ... s_n~(1 ≤ s_i ≤ 100) — the multiset s.

Output

If there exists no split of s to satisfy the given requirements, then print "NO" in the first line.

Otherwise print "YES" in the first line.

The second line should contain a string, consisting of n characters. i-th character should be equal to 'A' if the i-th element of multiset s goes to multiset a and 'B' if if the i-th element of multiset s goes to multiset b. Elements are numbered from 1 to n in the order they are given in the input.

If there exist multiple solutions, then print any of them.

Examples

Input

4
3 5 7 1


Output

YES
BABA


Input

3
3 5 1


Output

NO
	import java.io.IOException;
	import java.io.InputStream;
	import java.io.OutputStream;
	import java.io.PrintWriter;
	import java.io.Writer;
	import java.sql.Array;
	import java.text.DecimalFormat;
	import java.util.ArrayList;
	import java.util.Arrays;
	import java.util.Collections;
	import java.util.Comparator;
	import java.util.HashMap;
	import java.util.HashSet;
	import java.util.InputMismatchException;
	import java.util.Iterator;
	import java.util.LinkedList;
	import java.util.Map;
	import java.util.Scanner;
	import java.util.Set;
	
	import javax.sound.midi.Synthesizer;
	
	public class contest {
	
		public static void main(String[] args) {
			InputReader in = new InputReader(System.in);
			OutputWriter out = new OutputWriter(System.out);
	
			int count[] = new int[101];
			int n = in.readInt();
			int arr[] = new int[n];
			for (int i = 0; i < n; i++) {
				arr[i] = in.readInt();
				count[arr[i]]++;
			}
	
			int totalUnique = 0;
			int nonTwoUnique = 0;
			int nonThreeUnique = 0;
			for (int i = 0; i < count.length; i++) {
				if (count[i] == 1) {
					totalUnique++;
				} else if (count[i] == 2) {
					nonTwoUnique++;
				} else if (count[i] > 2) {
					nonThreeUnique++;
				}
			}
	
	//		System.out.println(totalUnique + " " + nonTwoUnique + " " + nonThreeUnique);
	
	//		if (totalUnique == 0) {
	//			out.printLine("YES");
	//			String s = "";
	//
	//			for (int i = 0; i < arr.length; i++) {
	//				s += "B";
	//			}
	//			out.printLine(s);
	//			out.close();
	//			return;
	//		}
	
			if (totalUnique % 2 == 0) {
				out.printLine("YES");
				String s = "";
				boolean toggle = true;
				for (int i = 0; i < arr.length; i++) {
					if (count[arr[i]] == 1 && toggle) {
						s = s + "B";
						toggle = false;
					} else if (count[arr[i]] == 1 && !toggle) {
						s = s + "A";
						toggle = true;
					} else {
						s = s + "B";
					}
				}
				out.printLine(s);
			} else {
				if (nonThreeUnique != 0) {
					out.printLine("YES");
					String s = "";
					int totalb = totalUnique / 2;
					boolean toggle = true;
					for (int i = 0; i < arr.length; i++) {
						if (count[arr[i]] > 2 && toggle) {
							s = s + "B";
							toggle = false;
						} else if (totalb > 0 && count[arr[i]] == 1) {
							s = s + "B";
							totalb--;
						} else {
							s = s + "A";
						}
					}
					out.printLine(s);
				} else {
					out.printLine("NO");
				}
			}
	
			// char[] s = in.readString().toCharArray();
			// int upper = 0;
			// int lower = 0;
			// int digit = 0;
			//
			// for (int i = 0; i < s.length; i++) {
			// if (s[i] >= 'A' && s[i] <= 'Z') {
			// upper++;
			// } else if (s[i] >= 'a' && s[i] <= 'z') {
			// lower++;
			// } else {
			// digit++;
			// }
			// }
			//
			// if (lower > 0 && upper > 0 && digit > 0) {
			// out.printLine(s.toString());
			// }
			// String ans = "";
			//
			// if (lower == 0) {
			// ans = ans + 'a';
			// }
			// if (upper == 0) {
			// ans = ans + 'Z';
			// }
			// if (digit == 0) {
			// ans += '9';
			// }
			//
			// for (int i = 3; i < s.length; i++) {
			// ans = ans + 'a';
			// }
			// out.printLine(ans);
	
			out.close();
		}
	
		private static class InputReader {
			private InputStream stream;
			private byte[] buf = new byte[1024];
			private int curChar;
			private int numChars;
	
			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 long readLong() {
				int c = read();
				while (isSpaceChar(c))
					c = read();
				long 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 int readInt() {
				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 String readString() {
				int c = read();
				while (isSpaceChar(c))
					c = read();
				StringBuffer res = new StringBuffer();
				do {
					res.appendCodePoint(c);
					c = read();
				} while (!isSpaceChar(c));
				return res.toString();
			}
	
			static boolean isSpaceChar(int c) {
				return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
			}
	
			public String next() {
				return readString();
			}
		}
	
		private static class OutputWriter {
			private final PrintWriter writer;
	
			public OutputWriter(OutputStream outputStream) {
				writer = new PrintWriter(outputStream);
			}
	
			public OutputWriter(Writer writer) {
				this.writer = new PrintWriter(writer);
			}
	
			public void print(Object... objects) {
				for (int i = 0; i < objects.length; i++) {
					if (i != 0)
						writer.print(' ');
					writer.print(objects[i]);
				}
			}
	
			public void printLine(Object... objects) {
				print(objects);
				writer.println();
			}
	
			public void close() {
				writer.close();
			}
		}
	}