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(sum(A[:2])) main A = sorted(list(map(int, input().split()))) A sorted(list(map(int, input().split()))) sorted list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split print(sum(A[:2])) print sum(A[:2]) sum A[:2] A :2 2 if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    A = sorted(list(map(int, input().split())))
    print(sum(A[:2])) def main():
    A = sorted(list(map(int, input().split())))
    print(sum(A[:2])) main
def main():
    A = sorted(list(map(int, input().split())))
    print(sum(A[:2]))


if __name__ == '__main__':
    main()
