#include<stdio.h>
int main()
{
    int m,n,l,a,s,d,t=10000;
    while(~scanf("%d%d%d",&m,&n,&l))
    {
        a=m+n;
        s=n+l;
        d=l+m;
        if(t>a) t=a;
        if(t>s) t=s;
        if(t>d) t=d;

        printf("%d\n",t);
    }
}
