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

~/algor $ cat problems/valyuta-konvertori

Currency converter

Easy 1000 ms 64 MB 21%
Share

A currency code $C$ and an amount $S$ in soums are given. Currencies: $1$ — US dollar (USD), $2$ — euro (EUR), $3$ — Russian rouble (RUB), $4$ — Kazakh tenge (KZT). Rates: $1$ USD = $12800$ soums, $1$ EUR = $13900$ soums, $1$ RUB = $135$ soums, $1$ KZT = $26$ soums. Convert the amount into that currency.

An amount in soums divided by the rate of the chosen currency

Input

One line with two integers: $C$ and $S$.

Output

One integer — the amount in the chosen currency.

Note

$1 \le C \le 4$
$1 \le S \le 10^{9}$
$S$ is divisible by the rate of the chosen currency.

Examples

Input #1
1 128000
Output #1
10
Input #2
3 13500
Output #2
100

Sign in to submit a solution

Signing up is free and takes a minute.