program ABC152B
    implicit none
    integer N,M
    read*,N,M
    if(N>M)then
        print"(A)",repeat(char(ichar("0")+M),N)
    else
        print"(A)",repeat(char(ichar("0")+N),M)
    endif
end program ABC152B