/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		List<String> list = Arrays.asList(
                "132567", "Amelia", " 123476", "Charlie", " 123516", "Emily", " 143456", "George", " 123466", "Harry", " 123457", "Jack", " 125456", "Joshua", " 132456", "Lily", " 123456", "Oliver"
        );
        List<String> names = IntStream.range(0, list.size())
                .filter(index -> index % 2 == 1)
                .mapToObj(index -> list.get(index))
                .collect(Collectors.toList());

        List<String> ids = IntStream.range(0, list.size())
                .filter(index -> index % 2 == 0)
                .mapToObj(index -> list.get(index))
                .collect(Collectors.toList());

        System.out.println(names);
        System.out.println(ids);
	}
}