p,q,r=map(int,input().split())
if p>=q and p>r:
    print(q+r)
if q>=r and q>p:
    print(p+r)
if r>=p and r>q:
    print(q+p)
if r==p and p==q:
    print(q+p) p,q,r=map(int,input().split()) p map(int,input().split()) map int input().split() ().split () input split q r if p>=q and p>r:
    print(q+r) p>=q and p>r p>=q p q p>r p r print(q+r) print q+r q r if q>=r and q>p:
    print(p+r) q>=r and q>p q>=r q r q>p q p print(p+r) print p+r p r if r>=p and r>q:
    print(q+p) r>=p and r>q r>=p r p r>q r q print(q+p) print q+p q p if r==p and p==q:
    print(q+p) r==p and p==q r==p r p p==q p q print(q+p) print q+p q p q,r=map(int,input().split()) map(int,input().split()) q p,q,r=map(int,input().split()) map(int,input().split()) p r=map(int,input().split()) map(int,input().split()) r
p,q,r=map(int,input().split())
if p>=q and p>r:
    print(q+r)
if q>=r and q>p:
    print(p+r)
if r>=p and r>q:
    print(q+p)
if r==p and p==q:
    print(q+p)