import sys
input = sys.stdin.readline
def main():
    P, Q, R = map(int, input().split())
    TIME = P+Q+R - max(P, max(Q, R))
    print(TIME)

if __name__ == '__main__':
    main() import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline def main():
    P, Q, R = map(int, input().split())
    TIME = P+Q+R - max(P, max(Q, R))
    print(TIME) main P, Q, R = map(int, input().split()) P map(int, input().split()) map int input().split() ().split () input split Q R TIME = P+Q+R - max(P, max(Q, R)) TIME P+Q+R - max(P, max(Q, R)) P+Q+R P+Q P Q R max(P, max(Q, R)) max P max(Q, R) max Q R print(TIME) print TIME if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    P, Q, R = map(int, input().split())
    TIME = P+Q+R - max(P, max(Q, R))
    print(TIME) def main():
    P, Q, R = map(int, input().split())
    TIME = P+Q+R - max(P, max(Q, R))
    print(TIME) main input = sys.stdin.readline sys.stdin.readline input
import sys
input = sys.stdin.readline
def main():
    P, Q, R = map(int, input().split())
    TIME = P+Q+R - max(P, max(Q, R))
    print(TIME)

if __name__ == '__main__':
    main()