import java.util.*;
public class tab1{
	public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		int tab[] = new int[10];
		for (int s = 0; s<tab.length;s++){
			System.out.print("Vnesi stevilo: ");
			tab[s] = sc.nextInt();
		}
		System.out.println();
		for (int s = 0; s<tab.length;s++){
			System.out.printf(tab[s]+" ");
		}
		System.out.println();
		for (int s = 0; s<tab.length;s++){
			if (tab[s] % 2 == 0)
				System.out.printf(tab[s]+" ");
			else
				System.out.printf(" - ");
		}
		System.out.println();
		for (int s = 0; s<tab.length;s++){
			if (tab[s] % 2 != 0)
				System.out.printf(tab[s]+" ");
			else
				System.out.printf(" - ");
		}
		System.out.println();
		for (int s = 0; s<tab.length;s++){
			if (s % 2 == 0)
				System.out.printf(tab[s]+" ");
			else
				System.out.printf(" - ");
		}
		System.out.println();
		for (int s = 0; s<tab.length;s++){
			if (s % 2 != 0)
				System.out.printf(tab[s]+" ");
			else
				System.out.printf(" - ");
		}
		System.out.println();
		for (int s = 0; s<tab.length;s++){
			if (tab[s]<30)
				System.out.printf(tab[s]+" ");
			else
				System.out.printf(" - ");
		}
	}
}