def main():
 p,q,r = map(int,input().split())
 print(min(p + q, q + r, p + r))
main() def main():
 p,q,r = map(int,input().split())
 print(min(p + q, q + r, p + r)) main 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, p + r)) print min(p + q, q + r, p + r) min p + q p q q + r q r p + r p r main() main def main():
 p,q,r = map(int,input().split())
 print(min(p + q, q + r, p + r)) def main():
 p,q,r = map(int,input().split())
 print(min(p + q, q + r, p + r)) main
def main():
 p,q,r = map(int,input().split())
 print(min(p + q, q + r, p + r))
main()