def airplane(p, q, r):

    return p+q+r-max(p,q,r)
def main():
    p, q, r = map(int, input().split())
    print(airplane(p, q, r))

if __name__ == '__main__':
    main() def airplane(p, q, r):

    return p+q+r-max(p,q,r) airplane return p+q+r-max(p,q,r) p+q+r-max(p,q,r) p+q+r p+q p q r max(p,q,r) max p q r p p q q r r def main():
    p, q, r = map(int, input().split())
    print(airplane(p, q, r)) main p, q, r = map(int, input().split()) p map(int, input().split()) map int input().split() ().split () input split q r print(airplane(p, q, r)) print airplane(p, q, r) airplane p q r if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    p, q, r = map(int, input().split())
    print(airplane(p, q, r)) def main():
    p, q, r = map(int, input().split())
    print(airplane(p, q, r)) main def airplane(p, q, r):

    return p+q+r-max(p,q,r) def airplane(p, q, r):

    return p+q+r-max(p,q,r) airplane
def airplane(p, q, r):

    return p+q+r-max(p,q,r)
def main():
    p, q, r = map(int, input().split())
    print(airplane(p, q, r))

if __name__ == '__main__':
    main()
