#!/usr/bin/python3
import sys
input = lambda: sys.stdin.readline().strip()
p, q, r = [int(x) for x in input().split()]
print(min(p + q, q + r, r + p)) import sys sys input = lambda: sys.stdin.readline().strip() input lambda: sys.stdin.readline().strip() sys.stdin.readline().strip() sys.stdin.readline().strip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline strip int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x p, q, r = [int(x) for x in input().split()] p [int(x) for x in 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 = lambda: sys.stdin.readline().strip() lambda: sys.stdin.readline().strip() input q, r = [int(x) for x in input().split()] [int(x) for x in input().split()] q p, q, r = [int(x) for x in input().split()] [int(x) for x in input().split()] p r = [int(x) for x in input().split()] [int(x) for x in input().split()] r
#!/usr/bin/python3
import sys
input = lambda: sys.stdin.readline().strip()
p, q, r = [int(x) for x in input().split()]
print(min(p + q, q + r, r + p))