# -*- coding: utf-8 -*-

def main():

    P, Q, R = map(int, input().split())

    path = [P, Q, R]

    path.sort()

    ans = path[0] + path[1]

    print(ans)


if __name__ == "__main__":
    main() def main():

    P, Q, R = map(int, input().split())

    path = [P, Q, R]

    path.sort()

    ans = path[0] + path[1]

    print(ans) main P, Q, R = map(int, input().split()) P map(int, input().split()) map int input().split() ().split () input split Q R path = [P, Q, R] path [P, Q, R] P Q R path.sort() path.sort path sort ans = path[0] + path[1] ans path[0] + path[1] path[0] path 0 path[1] path 1 print(ans) print ans if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():

    P, Q, R = map(int, input().split())

    path = [P, Q, R]

    path.sort()

    ans = path[0] + path[1]

    print(ans) def main():

    P, Q, R = map(int, input().split())

    path = [P, Q, R]

    path.sort()

    ans = path[0] + path[1]

    print(ans) main
# -*- coding: utf-8 -*-

def main():

    P, Q, R = map(int, input().split())

    path = [P, Q, R]

    path.sort()

    ans = path[0] + path[1]

    print(ans)


if __name__ == "__main__":
    main()