import java.util.stream.*;

class Ideone {
	public static void main (String[] args) throws java.lang.Exception {
		Stream.iterate(0, n -> n + 3)
			.map(x -> x * 2)
			.limit(10)
			.forEach(System.out::println);
	}
}