#!user/bin/bash

read d n
ans=$((($n-1)/99 * 100 + $n - ($n-1)/99 * 99))
if [ $d -eq 0 ]; then
    echo $((($n-1)/99 * 100 + $n - ($n-1)/99 * 99))
elif [ $d -eq 1 ]; then
    echo $(($ans * 100))
else
    echo $(($ans * 10000))
fi

