import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// Get the size of the array from the user
System.out.print("Enter the size of the array: ");
int size = scanner.nextInt();
int[] arr = new int[size];
// Get the elements of the array from the user
System.out.println("Enter the elements of the array:");
for (int i = 0; i < size; i++) {
arr[i] = scanner.nextInt();
}
// Print the elements of the array present on odd positions
System.out.print("Elements of the array present on odd positions: ");
for (int i = 0; i < size; i += 2) {
System.out.print(arr[i] + " ");
}
}
}