first accepted solution (result: 0.9)