import sys
input = sys.stdin.readline
from collections import *

P, Q, R = map(int, input().split())
print(min(P+Q, Q+R, R+P)) import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline from collections import * P, Q, R = map(int, input().split()) P map(int, input().split()) map int input().split() ().split () input split Q R print(min(P+Q, Q+R, R+P)) print min(P+Q, Q+R, R+P) min P+Q P Q Q+R Q R R+P R P input = sys.stdin.readline sys.stdin.readline input Q, R = map(int, input().split()) map(int, input().split()) Q R = map(int, input().split()) map(int, input().split()) R P, Q, R = map(int, input().split()) map(int, input().split()) P
import sys
input = sys.stdin.readline
from collections import *

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