P,Q,R = (int(a) for a in input().split())
a = P + Q
b = P + R
c = Q + R
print(min(a,b,c)) int(a) for a in input().split() for a in input().split() a input().split() ().split () input split for a in input().split() int(a) int a P,Q,R = (int(a) for a in input().split()) P (int(a) for a in input().split()) Q R a = P + Q a P + Q P Q b = P + R b P + R P R c = Q + R c Q + R Q R print(min(a,b,c)) print min(a,b,c) min a b c P,Q,R = (int(a) for a in input().split()) (int(a) for a in input().split()) P c = Q + R Q + R c a = P + Q P + Q a b = P + R P + R b Q,R = (int(a) for a in input().split()) (int(a) for a in input().split()) Q R = (int(a) for a in input().split()) (int(a) for a in input().split()) R
P,Q,R = (int(a) for a in input().split())
a = P + Q
b = P + R
c = Q + R
print(min(a,b,c))
