#include<stdio.h>
int main()
{
int n,m,i,j,m1;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&m);
m1=m;
while(m1%5!=0)
{
m1++;
}
if(m1<38)
{
printf("%d\n",m);
}
else
{
if(m1-m<3)
{
printf("%d\n",m1);
}
else
{
printf("%d\n",m);
}
}
}
return 0;
}
Comments
Post a Comment