solves 122
solves 107