lazy jumping frog input parsing