import java.util.*;

class Counter
{
    public static void main( String [] args )
    {
	Scanner in = new Scanner( System.in );
	final int COUNT = 10;
	int units, tens, twenties, thirties, forties;
	units = tens = twenties = thirties = forties = 0;

	for( int i = 1; i <= COUNT; i++ ) {
	    System.out.print( "Enter a number (1 - 49) :  " );
	    int input = in.nextInt();

	    if( input <= 0 ) {
		System.out.println( "INVALID DATA!!!" );
	    }
	    else if( input <= 10 ) {
		units++;
	    }
	    else if( input <= 20 ) {
		tens++;
	    }
	    else if( input <= 30 ) {
		twenties++;
	    }
	    else if( input <= 40 ) {
		thirties++;
	    }
	    else if( input <= 50 ) {
		forties++;
	    }
	}//  closes for loop

	System.out.println( "\nSCORES:  " +
			    "\n 0 - 10 \t " + units +
			    "\n11 - 20 \t " + tens +
			    "\n21 - 30 \t " + twenties +
			    "\n31 - 40 \t " + thirties +
			    "\n41 - 50 \t " + forties );
			  
    }  //  closes main
}
