def ABC_129_A():
    P,Q,R = map(int, input().split())
    print(min(P+Q,Q+R,R+P))


if __name__ == '__main__':

    ABC_129_A() def ABC_129_A():
    P,Q,R = map(int, input().split())
    print(min(P+Q,Q+R,R+P)) ABC_129_A P,Q,R = map(int, input().split()) P map(int, input().split()) map int input().split() ().split () input split Q R print(min(P+Q,Q+R,R+P)) print min(P+Q,Q+R,R+P) min P+Q P Q Q+R Q R R+P R P if __name__ == '__main__':

    ABC_129_A() __name__ == '__main__' __name__ '__main__' ABC_129_A() ABC_129_A def ABC_129_A():
    P,Q,R = map(int, input().split())
    print(min(P+Q,Q+R,R+P)) def ABC_129_A():
    P,Q,R = map(int, input().split())
    print(min(P+Q,Q+R,R+P)) ABC_129_A
def ABC_129_A():
    P,Q,R = map(int, input().split())
    print(min(P+Q,Q+R,R+P))


if __name__ == '__main__':

    ABC_129_A()