P, Q, R = map(int, input().split())

list_m = [P+Q,R+Q,P+R,Q+R,R+P,Q+P]

min = 200
for i in range(0,len(list_m)):
    if min > int(list_m[i]):
        min = list_m[i]

print(min) P, Q, R = map(int, input().split()) P map(int, input().split()) map int input().split() ().split () input split Q R list_m = [P+Q,R+Q,P+R,Q+R,R+P,Q+P] list_m [P+Q,R+Q,P+R,Q+R,R+P,Q+P] P+Q P Q R+Q R Q P+R P R Q+R Q R R+P R P Q+P Q P min = 200 min 200 for i in range(0,len(list_m)):
    if min > int(list_m[i]):
        min = list_m[i] i range(0,len(list_m)) range 0 len(list_m) len list_m if min > int(list_m[i]):
        min = list_m[i] min > int(list_m[i]) min int(list_m[i]) int list_m[i] list_m i min = list_m[i] min list_m[i] list_m i print(min) print min P, Q, R = map(int, input().split()) map(int, input().split()) P min = list_m[i] list_m[i] min R = map(int, input().split()) map(int, input().split()) R Q, R = map(int, input().split()) map(int, input().split()) Q list_m = [P+Q,R+Q,P+R,Q+R,R+P,Q+P] [P+Q,R+Q,P+R,Q+R,R+P,Q+P] list_m min = 200 200 min
P, Q, R = map(int, input().split())

list_m = [P+Q,R+Q,P+R,Q+R,R+P,Q+P]

min = 200
for i in range(0,len(list_m)):
    if min > int(list_m[i]):
        min = list_m[i]

print(min)
