def main():
    p,q,r = map(int, input().split())
    min_time = min([p+q, q+r, r+p])
    print(min_time)

if __name__ == '__main__':
	main() def main():
    p,q,r = map(int, input().split())
    min_time = min([p+q, q+r, r+p])
    print(min_time) main p,q,r = map(int, input().split()) p map(int, input().split()) map int input().split() ().split () input split q r min_time = min([p+q, q+r, r+p]) min_time min([p+q, q+r, r+p]) min [p+q, q+r, r+p] p+q p q q+r q r r+p r p print(min_time) print min_time if __name__ == '__main__':
	main() __name__ == '__main__' __name__ '__main__' main() main def main():
    p,q,r = map(int, input().split())
    min_time = min([p+q, q+r, r+p])
    print(min_time) def main():
    p,q,r = map(int, input().split())
    min_time = min([p+q, q+r, r+p])
    print(min_time) main
def main():
    p,q,r = map(int, input().split())
    min_time = min([p+q, q+r, r+p])
    print(min_time)

if __name__ == '__main__':
	main()