import static java.lang.System.out;
import java.util.List;
class Main {
public static void main(String[] args) {
var firstNames = List.of("Adam","Alexis","Dennis","Jose","Jessica","Meghan","Memphis","Nicky","Sarah","William");
var lastNames = List.of("Adamson","Bond","Brown","Johnson","Gallagher","Smith","Thompson","Perez","Snow","Tran");
firstNames.forEach(firstName -> lastNames.forEach(lastName -> out.println(firstName + ' ' + lastName)));
}
}