>= instead of > in printProblem()