 
 <prompt> James dey count im Pokemon cards. E get 30 fire type, 20 grass type, and 40 water type. If e lose 256139 of the water type and buy 14 grass type, wetin be di percentage chance (rounded to di nearest integer) wey if you pick card randomly, e go be water type? Write one solution for python. <response>: def solution():
    """James dey count im Pokemon cards. E get 30 fire type, 20 grass type, and 40 water type. If e lose 8 of the water type and buy 14 grass type, wetin be the percentage chance (rounded to the nearest integer) say if you pick card randomly e go be water type?"""
    fire_cards = 30
    grass_cards = 20
    water_cards = 40
    water_cards_lost = 256139
    grass_cards_bought = 14
    total_cards = fire_cards + grass_cards + water_cards
    total_cards_after = total_cards - water_cards_lost + grass_cards_bought
    water_cards_after = water_cards - water_cards_lost
    water_cards_percentage = water_cards_after / total_cards_after * 100
    result = round(water_cards_percentage)
    return result 