import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static void printShortestPath(int n, int i_start, int j_start, int i_end, int j_end) { // Print the distance along with the sequence of moves. int imove = i_end-i_start; //vertical int jmove = j_end - j_start; //horizantal //System.out.println("imove : "+ imove); //System.out.println("jmove : "+ jmove); ArrayList moves = new ArrayList(); if(imove%2 !=0){ System.out.println("Impossible"); }else{ int lcount = 0; if(imove>0){//UL or UR int ucount = imove/2; // System.out.println("ucount : "+ ucount); while(jmove0){//left for (int i=0; i0){//left for (int i=0; i0){ for (int i=0; i -1; i--) { System.out.print(moves.get(i) + " "); } } } public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int i_start = in.nextInt(); int j_start = in.nextInt(); int i_end = in.nextInt(); int j_end = in.nextInt(); printShortestPath(n, i_start, j_start, i_end, j_end); in.close(); } }