Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
Scanner in = new Scanner(s);
ArrayList<Integer> list = new ArrayList<>();
while (in.hasNext()) {
list.add(in.nextInt());
}
Integer[] arr = list.toArray(new Integer[0]);
for (int i = 0;i < list.size();i++) {
System.out.println(arr[i]);
}