//
//
#include <stdio.h>
int main()
{
int n,k,i,b,count=0;
double avg=0.0;
int a[6];
for(i=0;i<6;i++)
a[i]=0;
for(i=0;i<n;i++)
{
a[b]++;
}
for(i=0;i<6;i++)
{
avg+=a[i]*i;
}
avg/=n;
if(avg>=4.5)
else
{
i=0;
while(i<6 && avg)
{
if(a[i]!=0)
{
avg= avg*n -i + 5.0;
a[i]--;
count++;
}
else
{i++;continue;}
avg=avg/n;
if(avg>=4.5)
break;
}
}
return 0;
}
Ly8gCi8vIAojaW5jbHVkZSA8c3RkaW8uaD4KCmludCBtYWluKCkKewogICAgaW50IG4sayxpLGIsY291bnQ9MDsKICAgIGRvdWJsZSBhdmc9MC4wOwogICAgc2NhbmYoIiVkIiwmbik7CiAgICBpbnQgYVs2XTsKICAgIGZvcihpPTA7aTw2O2krKykKICAgIGFbaV09MDsKICAgIGZvcihpPTA7aTxuO2krKykKICAgIHsKICAgICAgIHNjYW5mKCIlZCAiLCZiKTsKICAgICAgIGFbYl0rKzsKICAgIH0KICAgIGZvcihpPTA7aTw2O2krKykKICAgIHsKICAgICAgICBhdmcrPWFbaV0qaTsKCX0KCWF2Zy89bjsKCWlmKGF2Zz49NC41KQoJcHJpbnRmKCIwXG4iKTsKCWVsc2UKCXsKCSAgICBpPTA7CgkgICAgd2hpbGUoaTw2ICYmIGF2ZykKCSAgICB7CgkgICAgICAgIGlmKGFbaV0hPTApCgkgICAgICAgIHsKCSAgICAgICAgICAgIGF2Zz0gYXZnKm4gLWkgKyA1LjA7CgkgICAgICAgICAgICBhW2ldLS07CgkgICAgICAgICAgICBjb3VudCsrOwoJICAgICAgICB9CgkgICAgICAgIGVsc2UgCgkgICAgICAgIHtpKys7Y29udGludWU7fQoJICAgICAgICBhdmc9YXZnL247CgkgICAgICAgIGlmKGF2Zz49NC41KQoJICAgICAgICBicmVhazsKCSAgICB9CgkgICAgcHJpbnRmKCIlZFxuIixjb3VudCk7Cgl9CglyZXR1cm4gMDsKfQ==
MTAwCjMgMyAzI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