# 129a

def atc_129a(input_value: str) -> int:
    PQR = input_value.split(" ")
    P = int(PQR[0])
    Q = int(PQR[1])
    R = int(PQR[2])

    return min(P + Q, P + R, Q + R)

input_value = input()
print(atc_129a(input_value)) def atc_129a(input_value: str) -> int:
    PQR = input_value.split(" ")
    P = int(PQR[0])
    Q = int(PQR[1])
    R = int(PQR[2])

    return min(P + Q, P + R, Q + R) atc_129a PQR = input_value.split(" ") PQR input_value.split(" ") input_value.split input_value split " " P = int(PQR[0]) P int(PQR[0]) int PQR[0] PQR 0 Q = int(PQR[1]) Q int(PQR[1]) int PQR[1] PQR 1 R = int(PQR[2]) R int(PQR[2]) int PQR[2] PQR 2 return min(P + Q, P + R, Q + R) min(P + Q, P + R, Q + R) min P + Q P Q P + R P R Q + R Q R input_value: str input_value input_value = input() input_value input() input print(atc_129a(input_value)) print atc_129a(input_value) atc_129a input_value input_value = input() input() input_value def atc_129a(input_value: str) -> int:
    PQR = input_value.split(" ")
    P = int(PQR[0])
    Q = int(PQR[1])
    R = int(PQR[2])

    return min(P + Q, P + R, Q + R) def atc_129a(input_value: str) -> int:
    PQR = input_value.split(" ")
    P = int(PQR[0])
    Q = int(PQR[1])
    R = int(PQR[2])

    return min(P + Q, P + R, Q + R) atc_129a
# 129a

def atc_129a(input_value: str) -> int:
    PQR = input_value.split(" ")
    P = int(PQR[0])
    Q = int(PQR[1])
    R = int(PQR[2])

    return min(P + Q, P + R, Q + R)

input_value = input()
print(atc_129a(input_value))
