import java.io.*;
import java.util.*;
public class Main{
public static void main (String[] args) throws Exception{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter n :");
int n=Integer.parseInt(br.readLine());
System.out.println("Enter numbers : ");
int[] arr=new int[n];
for(int i=0;i<n;i++){
arr[i]=Integer.parseInt(br.readLine());
}
System.out.println("Enter strings : ");
String[] f=new String[n];
for(int e=0;e<n;e++){
f[e]=br.readLine();
}
System.out.println("Displaying numbers");
//for(int i=0;i<n;i++)
for(Integer ar: arr) {
System.out.println(ar);
}
System.out.println("Displaying strings");
for( String st:f) {
System.out.println(st);
}
}}