def main():
    P, Q, R = map(int, input().split())

    ans = min(P + Q, Q + R, R + P)

    print(ans)


if __name__ == "__main__":
    main() def main():
    P, Q, R = map(int, input().split())

    ans = min(P + Q, Q + R, R + P)

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

    ans = min(P + Q, Q + R, R + P)

    print(ans) def main():
    P, Q, R = map(int, input().split())

    ans = min(P + Q, Q + R, R + P)

    print(ans) main
def main():
    P, Q, R = map(int, input().split())

    ans = min(P + Q, Q + R, R + P)

    print(ans)


if __name__ == "__main__":
    main()
