#QHD0000021. Trọng lượng của từ (The Weight Of Words)
Trọng lượng của từ (The Weight Of Words)
The Weight Of Words
Source: Kattis
Version: Phuoc Hung OJ Extended
Problem Statement
This package preserves the original task mechanism. Trọng lượng của chữ cái a đến z lần lượt là đến . Hãy tạo một từ gồm đúng chữ cái thường có tổng trọng lượng bằng .
Input
Dòng duy nhất chứa .
Output
In một từ hợp lệ, hoặc impossible nếu không tồn tại. Có thể in bất kỳ từ hợp lệ nào.
Subtasks
- Subtask 1 — 20 points: small data.
- Subtask 2 — 30 points: medium data.
- Subtask 3 — 50 points: full PHOJ package limits.
Examples
Input
11 131
Output
zzzzuaaaaaa
Explanation
The output follows directly from the rules above.