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


P, Q, R = LI()
ans = P+Q+R-max(P, Q, R)
print(ans) 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 = LI() P LI() LI Q R ans = P+Q+R-max(P, Q, R) ans P+Q+R-max(P, Q, R) P+Q+R P+Q P Q R max(P, Q, R) max P Q R print(ans) print ans ans = P+Q+R-max(P, Q, R) P+Q+R-max(P, Q, R) ans P, Q, R = LI() LI() P R = LI() LI() R Q, R = LI() LI() Q def LI():
    return list(map(int, input().split())) def LI():
    return list(map(int, input().split())) LI
def LI():
    return list(map(int, input().split()))


P, Q, R = LI()
ans = P+Q+R-max(P, Q, R)
print(ans)
