/*
* Scrabaid
*
* Revisions:
*
* 18/05/2001 lc - v1.0 release
*
* ----------------------------------------------------------------------------
*
* Scrabaid version 1.0, Copyright 2001 Linus Chang
* Scrabaid comes with ABSOLUTELY NO WARRANTY; for details, view the LICENCE
* file included with this distribution. This is free software, and you are
* welcome to redistribute it under certain conditions; view the LICENCE
* file for details.
*/


class Score {

	static int score(char letter) {
		final int[] s = { 1, 3, 3, 2, 1, 4,
				  2, 4, 1, 8, 5, 1,
				  3, 1, 1, 3, 10, 1,
				  1, 1, 1, 4, 4, 8, 
				  4, 10 };
		if (letter == ' ')
			return 0;
		else
			return s[(int)letter-'a'];

	}
	static int score(String s) {
		return score(s.charAt(0));
	}
	// Given a row and a column, is the tile a triple word?
	static boolean isTripleWord(int row, int col) {
		return (col == 0 || col == 7 || col == 14) && (row == 0 || row == 7 || row == 14) && !(col == 7 && row == 7);
	}
	static boolean isDoubleWord(int row, int col) {
		return ( (col == row || col + row == 14) && ( col == 7 || (col >= 1 && col <= 4) || (col >=10 && col <= 13) ));
	}
	static boolean isTripleLetter(int row, int col) {
		return ( (row == 5 || row == 9) && (col == 1 || col == 5 || col == 9 || col == 13) ||
		(col == 5 || col == 9) && (row == 1 || row == 13));
	}
	static boolean isDoubleLetter(int row, int col) {
		return ((row == 0 || row == 14) && (col == 3 || col == 11)) ||
		((col == 0 || col == 14) && (row == 3 || row == 11)) ||
		((row == 3 || row == 11) && col == 7) ||
		((col == 3 || col == 11) && row == 7) ||
		( (col == row || col + row == 14) && (col == 6 || col == 8) ) ||
		( (row == 6 || row == 8) && (col == 2 || col == 12) ) ||
		( (col == 6 || col == 8) && (row == 2 || row == 12) ) ;
	}

	
	public static void main(String []args) {

		for (char c = 'a'; c <= 'z'; c++) {
			System.out.println(c + " " + score(c));
		}
	}

}
