#include <stdio.h>
int main()
{
    int a,b,c,t;
    scanf("%d%d%d",&a,&b,&c);
    if(a>=b&&a>=c)
    {
        t=b+c;
    }
    else if(b>=a&&b>=c)
    {
        t=a+c;
    }
    else if(c>=a&&c>=b)
    {
        t=a+b;
    }
    printf("%d\n",t);
    printf("Buying any two bells costs %d yen.",t);

    return 0;

}
