print '' . join ( [ chr ( int ( [ '' . join ( [ { 'g' : '0' , 'G' : '1' } [ a ] for a in x ] ) [ b:b+ 8 ] for b in range ( 0 , len ( x ) , 8 ) ] [ c ] , 2 ) ) for c in range ( 0 , len ( x ) / 8 ) ] )