Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/yuzlik-sonlarni-sozda-yozish

Three-digit number in words

Easy 1000 ms 64 MB 27%
Share

A three-digit number $n$ is given. Write it in words in Uzbek: hundreds first (bir yuz, ikki yuz, …), then tens, then units; a digit equal to zero is not written. For example, $100$ — bir yuz, $256$ — ikki yuz ellik olti, $909$ — to'qqiz yuz to'qqiz. Tens: o'n (10), yigirma (20), o'ttiz (30), qirq (40), ellik (50), oltmish (60), yetmish (70), sakson (80), to'qson (90). Units: bir (1), ikki (2), uch (3), to'rt (4), besh (5), olti (6), yetti (7), sakkiz (8), to'qqiz (9).

The hundreds, tens and units digits of a three-digit number

Input

One integer $n$.

Output

One line — the number in words: lowercase words separated by one space.

Note

$100 \le n \le 999$

Examples

Input #1
100
Output #1
bir yuz
Input #2
256
Output #2
ikki yuz ellik olti

Sign in to submit a solution

Signing up is free and takes a minute.