import sys, math
from collections import defaultdict, deque, Counter
from bisect import bisect_left, bisect_right
from itertools import combinations, permutations, product
from heapq import heappush, heappop
from functools import lru_cache
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 1000000007
sys.setrecursionlimit(1000000)

P, Q, R = rl()

print(min(P+Q, Q+R, R+P)) import sys, math sys math from collections import defaultdict, deque, Counter from bisect import bisect_left, bisect_right from itertools import combinations, permutations, product from heapq import heappush, heappop from functools import lru_cache input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline rs = lambda: input().strip() rs lambda: input().strip() input().strip() ().strip () input strip ri = lambda: int(input()) ri lambda: int(input()) int(input()) int input() input rl = lambda: list(map(int, input().split())) rl lambda: list(map(int, input().split())) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split mod = 1000000007 mod 1000000007 sys.setrecursionlimit(1000000) sys.setrecursionlimit sys setrecursionlimit 1000000 P, Q, R = rl() P rl() rl 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 rl = lambda: list(map(int, input().split())) lambda: list(map(int, input().split())) rl Q, R = rl() rl() Q ri = lambda: int(input()) lambda: int(input()) ri R = rl() rl() R input = sys.stdin.readline sys.stdin.readline input mod = 1000000007 1000000007 mod rs = lambda: input().strip() lambda: input().strip() rs P, Q, R = rl() rl() P
import sys, math
from collections import defaultdict, deque, Counter
from bisect import bisect_left, bisect_right
from itertools import combinations, permutations, product
from heapq import heappush, heappop
from functools import lru_cache
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 1000000007
sys.setrecursionlimit(1000000)

P, Q, R = rl()

print(min(P+Q, Q+R, R+P))
