#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<math.h>
int main()
{
long a[10000];
long n,k,b;
scanf("%ld %ld",&n,&k);
long sum=0;
for(long i=0;i<n;i++)
{
scanf("%ld",&a[i]);
}
for(long i=0;i<n;i++)
{
if(i!=k)
sum+=a[i];
}
sum=sum/2;
scanf("%ld",&b);
if(b-sum==0)
printf("Bon Appetit");
else
printf("%ld",(b-sum));
return 0;
}
No comments:
Post a Comment