import sys
a=sys.stdin.readline()
res = [int(i) for i in a.split() if i.isdigit()] 
P,Q,R = [res[i] for i in (0,1,2)]
if (P>=1 and P<=100) and (Q>=1 and Q<=100) and (R>=1 and R<=100):
    t1=P+Q
    t2=Q+R
    t3=P+R
    L=[t1,t2,t3]
    L.sort()
    st=L[0]
    print(st)
else:
	print("Error") import sys sys a=sys.stdin.readline() a sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline int(i) for i in a.split() if i.isdigit() for i in a.split() if i.isdigit() i a.split() a.split a split i.isdigit() i.isdigit i isdigit if i.isdigit() int(i) int i res = [int(i) for i in a.split() if i.isdigit()] res [int(i) for i in a.split() if i.isdigit()] res[i] for i in (0,1,2) for i in (0,1,2) i (0,1,2) 0 1 2 for i in (0,1,2) res[i] res i P,Q,R = [res[i] for i in (0,1,2)] P [res[i] for i in (0,1,2)] Q R if (P>=1 and P<=100) and (Q>=1 and Q<=100) and (R>=1 and R<=100):
    t1=P+Q
    t2=Q+R
    t3=P+R
    L=[t1,t2,t3]
    L.sort()
    st=L[0]
    print(st)
else:
	print("Error") (P>=1 and P<=100) and (Q>=1 and Q<=100) and (R>=1 and R<=100) (P>=1 and P<=100) and (Q>=1 and Q<=100) P>=1 and P<=100 P>=1 P 1 P<=100 P 100 Q>=1 and Q<=100 Q>=1 Q 1 Q<=100 Q 100 R>=1 and R<=100 R>=1 R 1 R<=100 R 100 t1=P+Q t1 P+Q P Q t2=Q+R t2 Q+R Q R t3=P+R t3 P+R P R L=[t1,t2,t3] L [t1,t2,t3] t1 t2 t3 L.sort() L.sort L sort st=L[0] st L[0] L 0 print(st) print st print("Error") print "Error" res = [int(i) for i in a.split() if i.isdigit()] [int(i) for i in a.split() if i.isdigit()] res P,Q,R = [res[i] for i in (0,1,2)] [res[i] for i in (0,1,2)] P t1=P+Q P+Q t1 Q,R = [res[i] for i in (0,1,2)] [res[i] for i in (0,1,2)] Q st=L[0] L[0] st R = [res[i] for i in (0,1,2)] [res[i] for i in (0,1,2)] R t2=Q+R Q+R t2 a=sys.stdin.readline() sys.stdin.readline() a t3=P+R P+R t3 L=[t1,t2,t3] [t1,t2,t3] L
import sys
a=sys.stdin.readline()
res = [int(i) for i in a.split() if i.isdigit()] 
P,Q,R = [res[i] for i in (0,1,2)]
if (P>=1 and P<=100) and (Q>=1 and Q<=100) and (R>=1 and R<=100):
    t1=P+Q
    t2=Q+R
    t3=P+R
    L=[t1,t2,t3]
    L.sort()
    st=L[0]
    print(st)
else:
	print("Error")