P,Q,R=map(int,input().split())
if (1<=P&P<=100)&(1<=Q&Q<=100)&(1<=R&R<=100):
    ABC=P+Q
    BCA=Q+R
    CAB=R+P
    answer=min(ABC,BCA,CAB)
    print(answer) P,Q,R=map(int,input().split()) P map(int,input().split()) map int input().split() ().split () input split Q R if (1<=P&P<=100)&(1<=Q&Q<=100)&(1<=R&R<=100):
    ABC=P+Q
    BCA=Q+R
    CAB=R+P
    answer=min(ABC,BCA,CAB)
    print(answer) (1<=P&P<=100)&(1<=Q&Q<=100)&(1<=R&R<=100) (1<=P&P<=100)&(1<=Q&Q<=100) 1<=P&P<=100 1<=P&P 1 P&P P P 100 1<=Q&Q<=100 1<=Q&Q 1 Q&Q Q Q 100 1<=R&R<=100 1<=R&R 1 R&R R R 100 ABC=P+Q ABC P+Q P Q BCA=Q+R BCA Q+R Q R CAB=R+P CAB R+P R P answer=min(ABC,BCA,CAB) answer min(ABC,BCA,CAB) min ABC BCA CAB print(answer) print answer R=map(int,input().split()) map(int,input().split()) R BCA=Q+R Q+R BCA answer=min(ABC,BCA,CAB) min(ABC,BCA,CAB) answer CAB=R+P R+P CAB ABC=P+Q P+Q ABC P,Q,R=map(int,input().split()) map(int,input().split()) P Q,R=map(int,input().split()) map(int,input().split()) Q
P,Q,R=map(int,input().split())
if (1<=P&P<=100)&(1<=Q&Q<=100)&(1<=R&R<=100):
    ABC=P+Q
    BCA=Q+R
    CAB=R+P
    answer=min(ABC,BCA,CAB)
    print(answer)