import itertools


def resolve():
    P, Q, R = map(int, input().split())
    groups = itertools.combinations([P, Q, R], 2)

    ans = sum([P, Q, R])
    for group in groups:
        ans = min(sum(group), ans)

    print(ans)


resolve() import itertools itertools def resolve():
    P, Q, R = map(int, input().split())
    groups = itertools.combinations([P, Q, R], 2)

    ans = sum([P, Q, R])
    for group in groups:
        ans = min(sum(group), ans)

    print(ans) resolve P, Q, R = map(int, input().split()) P map(int, input().split()) map int input().split() ().split () input split Q R groups = itertools.combinations([P, Q, R], 2) groups itertools.combinations([P, Q, R], 2) itertools.combinations itertools combinations [P, Q, R] P Q R 2 ans = sum([P, Q, R]) ans sum([P, Q, R]) sum [P, Q, R] P Q R for group in groups:
        ans = min(sum(group), ans)

     group groups ans = min(sum(group), ans) ans min(sum(group), ans) min sum(group) sum group ans print(ans) print ans resolve() resolve def resolve():
    P, Q, R = map(int, input().split())
    groups = itertools.combinations([P, Q, R], 2)

    ans = sum([P, Q, R])
    for group in groups:
        ans = min(sum(group), ans)

    print(ans) def resolve():
    P, Q, R = map(int, input().split())
    groups = itertools.combinations([P, Q, R], 2)

    ans = sum([P, Q, R])
    for group in groups:
        ans = min(sum(group), ans)

    print(ans) resolve
import itertools


def resolve():
    P, Q, R = map(int, input().split())
    groups = itertools.combinations([P, Q, R], 2)

    ans = sum([P, Q, R])
    for group in groups:
        ans = min(sum(group), ans)

    print(ans)


resolve()