
url = "https://atcoder.jp//contests/abc129/tasks/abc129_a"

def main():
    p, q, r = list(map(int, input().split()))
    print(sum([p,q,r]) - max(p,q,r))

if __name__ == '__main__':
    main() url = "https://atcoder.jp//contests/abc129/tasks/abc129_a" url "https://atcoder.jp//contests/abc129/tasks/abc129_a" def main():
    p, q, r = list(map(int, input().split()))
    print(sum([p,q,r]) - max(p,q,r)) main p, q, r = list(map(int, input().split())) p list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split q r print(sum([p,q,r]) - max(p,q,r)) print sum([p,q,r]) - max(p,q,r) sum([p,q,r]) sum [p,q,r] p q r max(p,q,r) max p q r if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main url = "https://atcoder.jp//contests/abc129/tasks/abc129_a" "https://atcoder.jp//contests/abc129/tasks/abc129_a" url def main():
    p, q, r = list(map(int, input().split()))
    print(sum([p,q,r]) - max(p,q,r)) def main():
    p, q, r = list(map(int, input().split()))
    print(sum([p,q,r]) - max(p,q,r)) main

url = "https://atcoder.jp//contests/abc129/tasks/abc129_a"

def main():
    p, q, r = list(map(int, input().split()))
    print(sum([p,q,r]) - max(p,q,r))

if __name__ == '__main__':
    main()
