import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60


def main():
    (*PQR,) = map(int, readline().split())
    ans = sum(PQR) - max(PQR)
    print(ans)
    return


if __name__ == '__main__':
    main() import sys sys read = sys.stdin.read read sys.stdin.read sys.stdin sys stdin read readline = sys.stdin.readline readline sys.stdin.readline sys.stdin sys stdin readline readlines = sys.stdin.readlines readlines sys.stdin.readlines sys.stdin sys stdin readlines sys.setrecursionlimit(10 ** 9) sys.setrecursionlimit sys setrecursionlimit 10 ** 9 10 9 INF = 1 << 60 INF 1 << 60 1 60 def main():
    (*PQR,) = map(int, readline().split())
    ans = sum(PQR) - max(PQR)
    print(ans)
    return main (*PQR,) = map(int, readline().split()) *PQR PQR map(int, readline().split()) map int readline().split() ().split () readline split ans = sum(PQR) - max(PQR) ans sum(PQR) - max(PQR) sum(PQR) sum PQR max(PQR) max PQR print(ans) print ans return if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main readline = sys.stdin.readline sys.stdin.readline readline readlines = sys.stdin.readlines sys.stdin.readlines readlines INF = 1 << 60 1 << 60 INF def main():
    (*PQR,) = map(int, readline().split())
    ans = sum(PQR) - max(PQR)
    print(ans)
    return def main():
    (*PQR,) = map(int, readline().split())
    ans = sum(PQR) - max(PQR)
    print(ans)
    return main read = sys.stdin.read sys.stdin.read read
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60


def main():
    (*PQR,) = map(int, readline().split())
    ans = sum(PQR) - max(PQR)
    print(ans)
    return


if __name__ == '__main__':
    main()
