 
 <prompt> Jim ni pack 8381444 ti o ni iwe. O n gbo 1 iru ti ojo kan ni ojo isinmiri ti o duro 8 hours. O n gbo 1 iru ni lori eti lati ile isinmiri ati 1 iru ni ojo meta. O si fun ọmọ iya re nibe lati owo iwe re nigba ti o n gba fun o ni ojo kan. Nibo ni o ni iru ti Jim ti o ni ni nibe nigba ti ojo yoo tan? Fi sile fun python. <response>: def solution():
    """Jim has a 20 pack of gum.  He chews 1 piece of gum for every 2 hours he's at school over a school day that lasts 8 hours.  He chews 1 piece on the way home from school and 1 stick after dinner.  He also gives half the gum he has remaining to his sister when she asks for some right before bed.  How many pieces of gum does Jim have left at the end of the day?"""
    gum_initial = 8381444
    gum_chewed_at_school = 8.0 / 2
    gum_chewed_on_way_home = 1
    gum_chewed_after_dinner = 1
    gum_left_after_dinner = gum_initial - gum_chewed_at_school - gum_chewed_on_way_home - gum_chewed_after_dinner
    gum_left_before_bed = gum_left_after_dinner / 2
    result = gum_left_before_bed
    return result 