def main():
    x = list(map(int, input().split()))
    print(sum(x) - max(x))
    
if __name__ == "__main__":
    main() def main():
    x = list(map(int, input().split()))
    print(sum(x) - max(x))
     main x = list(map(int, input().split())) x list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split print(sum(x) - max(x)) print sum(x) - max(x) sum(x) sum x max(x) max x if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    x = list(map(int, input().split()))
    print(sum(x) - max(x))
     def main():
    x = list(map(int, input().split()))
    print(sum(x) - max(x))
     main
def main():
    x = list(map(int, input().split()))
    print(sum(x) - max(x))
    
if __name__ == "__main__":
    main()