PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#GD0000164. Nhà thần số học kỳ lạ (The Mad Numerologist)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Nhà thần số học kỳ lạ (The Mad Numerologist)

The Mad Numerologist

Source: UVa

Version: Phuoc Hung OJ Extended

Problem Statement

Construct an uppercase name of length nn. Odd positions must contain vowels (A,E,I,O,U), each used at most 2121 times, and even positions must contain consonants, each used at most 55 times. Letter weights follow alphabet positions modulo 99 (A,J,S weigh 11, B,K,T weigh 22, ..., I,R weigh 99). Minimize the total vowel weight and the total consonant weight separately; among optimum names output the lexicographically smallest.

Input

One line contains the required name length nn.

Output

Print one uppercase name of length nn satisfying the position limits, usage caps, minimum total weights, and lexicographic tie-break. The PHOJ version does not include a multi-case label.

Subtasks

  • Subtask 1 (20 points): 1≤n≤201\le n\le 20; nguyên âm tối đa 2121 lần/chữ; phụ âm tối đa 55 lần/chữ.
  • Subtask 2 (30 points): 1≤n≤1001\le n\le 100; nguyên âm tối đa 2121 lần/chữ; phụ âm tối đa 55 lần/chữ.
  • Subtask 3 (50 points): 1≤n≤2101\le n\le 210; nguyên âm tối đa 2121 lần/chữ; phụ âm tối đa 55 lần/chữ.

Examples

Input

5

Output

AJAJA

Explanation

A length-55 name has three vowel positions and two consonant positions. Three A letters and two J letters each have weight 11, producing the minimum weights and the lexicographically smallest interleaving AJAJA.