import sys
import numpy as np
import itertools

p,q,r = input().split()
p = int(p)
q = int(q)
r = int(r)
dest_min = p + q + r
dest = np.array(list(itertools.combinations([p,q,r],2)))


for dest_sample in dest:
    dest_min = min(dest_min, np.sum(dest_sample))

print(dest_min) import sys sys import numpy as np numpy import itertools itertools p,q,r = input().split() p input().split() ().split () input split q r p = int(p) p int(p) int p q = int(q) q int(q) int q r = int(r) r int(r) int r dest_min = p + q + r dest_min p + q + r p + q p q r dest = np.array(list(itertools.combinations([p,q,r],2))) dest np.array(list(itertools.combinations([p,q,r],2))) np.array np array list(itertools.combinations([p,q,r],2)) list itertools.combinations([p,q,r],2) itertools.combinations itertools combinations [p,q,r] p q r 2 for dest_sample in dest:
    dest_min = min(dest_min, np.sum(dest_sample)) dest_sample dest dest_min = min(dest_min, np.sum(dest_sample)) dest_min min(dest_min, np.sum(dest_sample)) min dest_min np.sum(dest_sample) np.sum np sum dest_sample print(dest_min) print dest_min p,q,r = input().split() input().split() p dest = np.array(list(itertools.combinations([p,q,r],2))) np.array(list(itertools.combinations([p,q,r],2))) dest q,r = input().split() input().split() q p = int(p) int(p) p q = int(q) int(q) q r = int(r) int(r) r r = input().split() input().split() r dest_min = p + q + r p + q + r dest_min dest_min = min(dest_min, np.sum(dest_sample)) min(dest_min, np.sum(dest_sample)) dest_min
import sys
import numpy as np
import itertools

p,q,r = input().split()
p = int(p)
q = int(q)
r = int(r)
dest_min = p + q + r
dest = np.array(list(itertools.combinations([p,q,r],2)))


for dest_sample in dest:
    dest_min = min(dest_min, np.sum(dest_sample))

print(dest_min)