con = { }
data = raw_input( 'input:' )
con[ 'singular' ] = len( [ x for x in data if int( x ) % 2 ] )
con[ 'even' ] = len( data ) - con[ 'singular' ]
print( con )
con = { }
data = raw_input( 'input:' )
con[ 'singular' ] = len( [ x for x in data if int( x ) % 2 ] )
con[ 'even' ] = len( data ) - con[ 'singular' ]
print( con )