import itertools
import math
import fractions
import functools
import copy

p,q,r = map(int, input().split())
print(p+q+r-max(p,q,r)) import itertools itertools import math math import fractions fractions import functools functools import copy copy p,q,r = map(int, input().split()) p map(int, input().split()) map int input().split() ().split () input split 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 = map(int, input().split()) map(int, input().split()) p q,r = map(int, input().split()) map(int, input().split()) q r = map(int, input().split()) map(int, input().split()) r
import itertools
import math
import fractions
import functools
import copy

p,q,r = map(int, input().split())
print(p+q+r-max(p,q,r))