program main
    implicit none
    integer:: a, b, low, high, i

    read*, a,b

    low = min(a,b)
    high = max(a,b)

    do i=1, high
        write(*, '(i0)', advance='no') low
    end do


end program main