P160: Tweaked Java and Haskell solutions.