def main():



    a, b = input().split()

    aa = a*int(b)

    bb = b*int(a)



    if aa < bb:

        return aa

    return bb



if __name__ == '__main__':

    print((main()))

def main():



    a, b = input().split()

    s = a * int(b)

    t = b * int(a)



    if s < t:

        return s

    return t



if __name__ == '__main__':

    print((main()))

def main():
    a, b = input().split()
    aa = a * int(b)
    bb = b * int(a)
    if aa < bb:
        return aa
    return bb


if __name__ == "__main__":
    print((main()))

def main():
    a, b = input().split()
    s = a * int(b)
    t = b * int(a)
    if s < t:
        return s
    return t


if __name__ == "__main__":
    print((main()))

-    aa = a * int(b) -    bb = b * int(a) -    if aa < bb: -        return aa -    return bb +    s = a * int(b) +    t = b * int(a) +    if s < t: +        return s +    return t