n=0
for(i=0; i<=9; i=i+1) {for(j=0; j<=9; j=j+1) {for(k=0; k<=9; k=k+1) {if(i==5||j==5||k==5) {n=n+1} } } }
document.write(n)


examples