Here is my code, any help??

#include <stdio.h>

int main(){

int i, num, a, b, c;

scanf("%d", &num);

long int coin[num], k[num];

for(i=0; i<num; i++) scanf("%d", &coin[i]);

for(i=0; i<num; i++){

a=(int)coin[i]/2;

b=(int)coin[i]/3;

c=(int)coin[i]/4;

if((a+b+c)>coin[i]) k[i]=a+b+c;

else k[i]=coin[i];

}

for(i=0; i<num; i++) printf("%d\n", k[i]);

return 0;

}