Codeforces Round 387 (Div. 2)
B
Mammoth's Genome Decoding
Codeforces
900
原题
← AC →
翻译中…

The process of mammoth's genome decoding in Berland comes to its end!

翻译中…

One of the few remaining tasks is to restore unrecognized nucleotides in a found chain $*s*$. Each nucleotide is coded with a capital letter of English alphabet: 'A', 'C', 'G' or 'T'. Unrecognized nucleotides are coded by a question mark '?'. Thus, $*s*$ is a string consisting of letters 'A', 'C', 'G', 'T' and characters '?'.

翻译中…

It is known that the number of nucleotides of each of the four types in the decoded genome of mammoth in Berland should be equal.

翻译中…

Your task is to decode the genome and replace each unrecognized nucleotide with one of the four types so that the number of nucleotides of each of the four types becomes equal.

翻译中…

Input

翻译中…

The first line contains the integer $*n*$ ($4 ≤ *n* ≤ 255$) — the length of the genome.

翻译中…

The second line contains the string $*s*$ of length $*n*$ — the coded genome. It consists of characters 'A', 'C', 'G', 'T' and '?'.

翻译中…

Output

翻译中…

If it is possible to decode the genome, print it. If there are multiple answer, print any of them. If it is not possible, print three equals signs in a row: "===" (without quotes).

翻译中…

Note

翻译中…

In the first example you can replace the first question mark with the letter 'A', the second question mark with the letter 'G', the third question mark with the letter 'T', then each nucleotide in the genome would be presented twice.

翻译中…

In the second example the genome is already decoded correctly and each nucleotide is exactly once in it.

翻译中…

In the third and the fourth examples it is impossible to decode the genom.

翻译中…

样例

Input #1
8
AG?C??CT
Output #1
AGACGTCT
InputCopy OutputCopy
Input #2
4
AGCT
Output #2
AGCT
InputCopy OutputCopy
Input #3
6
????G?
Output #3
===
InputCopy OutputCopy
Input #4
4
AA??
Output #4
===
InputCopy OutputCopy
题目信息
题号
747B
时间限制
1 s
内存限制
256 MB
标签
模拟
字符串

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。