IntSummaryStatistics () { IntSummaryStatistics stat = new IntSummaryStatistics(); long limit = 33; OUTER: while (true) { Integer x = getInt(); for (int i = 0; i < x; i++) { if (limit-- == 0) break OUTER; stat.accept(i); } } return stat; }