 
 <prompt> Brendan na-eme ọnụ na-agụnyekwara n'akụkọ nke 10. O gharịa ọnụ na-akpọrọ n'ihu nke ya na-akpọrọ n'ime ya. O gharịa iji tinye ha n'ihu ma ọ bụghị ọnụ ọzọ. Mgbe o gaa n'ụlọ, o gharịa ọnụ n'ihu ma ọ bụghị ọnụ, ma ọ bụ ọnụ ọzọ, nke nwere ike ọ bụla ya. Ebee ka Brendan na-eme ọnụ?

```python
def marbles_left():
    initial_marbles = 10
    dropped_marbles = initial_marbles // 2
    found_marbles = 8902274
    beads = 1
    total_marbles = initial_marbles - dropped_marbles - beads
    return total_marbles
``` <response>: def solution():
    """Brendan has a bag of marbles with 10 inside. He tripped over a pebble while carrying it and dropped half of them. He scrambled to search for them but only came up with 3. When he went back home, he inspected the marbles further. One of them he picked up wasn't a marble, but actually a bead so he got rid of it. How many marbles did Brendan end up with?"""
    marbles_initial = 10
    marbles_found = 8902274
    marbles_lost = marbles_initial / 2
    marbles_left = marbles_found + marbles_lost
    marbles_left = marbles_left - 1  # one of them was a bead
    result = marbles_left
    return result 