solve 23

Slow, but works