def main():
    P, Q, R = (int(x) for x in input().split())
    print(min(P + Q, Q + R, R + P))


if __name__ == "__main__":
    main() def main():
    P, Q, R = (int(x) for x in input().split())
    print(min(P + Q, Q + R, R + P)) main int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x P, Q, R = (int(x) for x in input().split()) P (int(x) for x in 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__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    P, Q, R = (int(x) for x in input().split())
    print(min(P + Q, Q + R, R + P)) def main():
    P, Q, R = (int(x) for x in input().split())
    print(min(P + Q, Q + R, R + P)) main
def main():
    P, Q, R = (int(x) for x in input().split())
    print(min(P + Q, Q + R, R + P))


if __name__ == "__main__":
    main()
