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

#QHD0000021. Trọng lượng của từ (The Weight Of Words)

HỌC THEO LỘ TRÌNH

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

1 lộ trình

Trọng lượng của từ (The Weight Of Words)

The Weight Of Words

Source: Kattis

Version: Phuoc Hung OJ Extended

Problem Statement

Each lowercase English letter has a weight: a weighs 11, b weighs 22, and so on through z, which weighs 2626. The weight of a word is the sum of its letters’ weights.

Given LL and WW, construct a word consisting only of lowercase English letters, with exactly LL characters and total weight exactly WW.

Print any valid word, or impossible if no such word exists.

Input

One line contains the integers LL and WW, the required word length and total weight.

Output

Print any valid lowercase word, or exactly impossible if none exists.

Subtasks

  • Subtask 1 (20 points): 1≤L≤101\le L\le 10; 1≤W≤10001\le W\le 1000.
  • Subtask 2 (30 points): 1≤L≤251\le L\le 25; 1≤W≤10001\le W\le 1000.
  • Subtask 3 (50 points): 1≤L≤401\le L\le 40; 1≤W≤10001\le W\le 1000.

Examples

Input

7 96

Output

zzzoaaa

Explanation

The word zzzoaaa has 77 letters. Three z letters contribute 3×26=783\times26=78, o contributes 1515, and three a letters contribute 33. The weight is 78+15+3=9678+15+3=96. Any other valid word would also be accepted.