program ABC152B
    implicit none
    integer(8)::a,b,i
    read(5,*)a,b

    if(a<b)then
        do i=1,b
            write(*,fmt='(i0)',advance='no')a
        end do
        print'(A)',""
    else
        do i=1,a
            write(*,fmt='(i0)',advance='no')b
        end do
        print'(A)',""
    end if
end program ABC152B