def main():

    A = sorted(list(map(int, input().split())))

    print((A[0] + A[1]))





if __name__ == '__main__':

    main()
def main():

    A = sorted(list(map(int, input().split())))

    print((sum(A[:2])))





if __name__ == '__main__':

    main()

def main():
    A = sorted(list(map(int, input().split())))
    print((A[0] + A[1]))


if __name__ == "__main__":
    main()

def main():
    A = sorted(list(map(int, input().split())))
    print((sum(A[:2])))


if __name__ == "__main__":
    main()

-    print((A[0] + A[1])) +    print((sum(A[:2])))