package projects ;

import java.util.Scanner ;

public class apples {

public static void main ( String [ ] args ) {

Scanner x = new Scanner ( System . in ) ;

System . out . println ( "please enter a word to change into binary" ) ;

String temp = x. nextLine ( ) ;

String [ ] binary = new String [ 27 ] ;

binary [ 0 ] = "00000" ;

binary [ 1 ] = "00001" ;

binary [ 2 ] = "00010" ;

binary [ 3 ] = "00011" ;

binary [ 4 ] = "00100" ;

binary [ 5 ] = "00101" ;

binary [ 6 ] = "00110" ;

binary [ 7 ] = "00111" ;

binary [ 8 ] = "01000" ;

binary [ 9 ] = "01001" ;

binary [ 10 ] = "01010" ;

binary [ 11 ] = "01011" ;

binary [ 12 ] = "01100" ;

binary [ 13 ] = "01101" ;

binary [ 14 ] = "01110" ;

binary [ 15 ] = "01111" ;

binary [ 16 ] = "10000" ;

binary [ 17 ] = "10001" ;

binary [ 18 ] = "10010" ;

binary [ 19 ] = "10011" ;

binary [ 20 ] = "10100" ;

binary [ 21 ] = "10101" ;

binary [ 22 ] = "10110" ;

binary [ 23 ] = "10111" ;

binary [ 24 ] = "11000" ;

binary [ 25 ] = "11001" ;

binary [ 26 ] = "11010" ;

char c ;

for ( int i = 0 ; i < temp. length ( ) ; i ++ ) {

c = temp. charAt ( i ) ;

if ( c == 'a' || c == 'A' ) {

System . out . print ( binary [ 1 ] ) ;

} else if ( c == 'b' || c == 'B' ) {

System . out . print ( binary [ 2 ] ) ;

} else if ( c == 'c' || c == 'C' ) {

System . out . print ( binary [ 3 ] ) ;

} else if ( c == 'd' || c == 'D' ) {

System . out . print ( binary [ 4 ] ) ;

} else if ( c == 'e' || c == 'E' ) {

System . out . print ( binary [ 5 ] ) ;

} else if ( c == 'f' || c == 'F' ) {

System . out . print ( binary [ 6 ] ) ;

} else if ( c == 'g' || c == 'G' ) {

System . out . print ( binary [ 7 ] ) ;

} else if ( c == 'h' || c == 'H' ) {

System . out . print ( binary [ 8 ] ) ;

} else if ( c == 'i' || c == 'I' ) {

System . out . print ( binary [ 9 ] ) ;

} else if ( c == 'j' || c == 'J' ) {

System . out . print ( binary [ 10 ] ) ;

} else if ( c == 'k' || c == 'K' ) {

System . out . print ( binary [ 11 ] ) ;

} else if ( c == 'l' || c == 'L' ) {

System . out . print ( binary [ 12 ] ) ;

} else if ( c == 'm' || c == 'M' ) {

System . out . print ( binary [ 13 ] ) ;

} else if ( c == 'n' || c == 'N' ) {

System . out . print ( binary [ 14 ] ) ;

} else if ( c == 'o' || c == 'O' ) {

System . out . print ( binary [ 15 ] ) ;

} else if ( c == 'p' || c == 'P' ) {

System . out . print ( binary [ 16 ] ) ;

} else if ( c == 'q' || c == 'Q' ) {

System . out . print ( binary [ 17 ] ) ;

} else if ( c == 'r' || c