def MI():
    return map(int, input().split())

def LI():
    return list(map(int, input().split()))

P, Q, R = MI()

print(P + Q + R - max(P, Q, R)) def MI():
    return map(int, input().split()) MI return map(int, input().split()) map(int, input().split()) map int input().split() ().split () input split def LI():
    return list(map(int, input().split())) LI return list(map(int, input().split())) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split P, Q, R = MI() P MI() MI Q R print(P + Q + R - max(P, Q, R)) print P + Q + R - max(P, Q, R) P + Q + R P + Q P Q R max(P, Q, R) max P Q R P, Q, R = MI() MI() P def LI():
    return list(map(int, input().split())) def LI():
    return list(map(int, input().split())) LI Q, R = MI() MI() Q def MI():
    return map(int, input().split()) def MI():
    return map(int, input().split()) MI R = MI() MI() R
def MI():
    return map(int, input().split())

def LI():
    return list(map(int, input().split()))

P, Q, R = MI()

print(P + Q + R - max(P, Q, R))