#create date: 2020-07-25 09:12

import sys
stdin = sys.stdin

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

def main():
    a = na()
    print(sum(a) - max(a))

if __name__ == "__main__":
    main() import sys sys stdin = sys.stdin stdin sys.stdin sys stdin def ns(): return stdin.readline().rstrip() ns def ni(): return int(ns()) ni def na(): return list(map(int, stdin.readline().split())) na def main():
    a = na()
    print(sum(a) - max(a)) main a = na() a na() na print(sum(a) - max(a)) print sum(a) - max(a) sum(a) sum a max(a) max a if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    a = na()
    print(sum(a) - max(a)) def main():
    a = na()
    print(sum(a) - max(a)) main def ni(): return int(ns()) def ni(): return int(ns()) ni def na(): return list(map(int, stdin.readline().split())) def na(): return list(map(int, stdin.readline().split())) na def ns(): return stdin.readline().rstrip() def ns(): return stdin.readline().rstrip() ns stdin = sys.stdin sys.stdin stdin
#create date: 2020-07-25 09:12

import sys
stdin = sys.stdin

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

def main():
    a = na()
    print(sum(a) - max(a))

if __name__ == "__main__":
    main()