import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void printShortestPath(int N, int Is,int Js,int Ie,int Je) { if((Je-Ie)%2!=0) System.out.println("Impossible"); } public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int is = in.nextInt(); int js = in.nextInt(); int ie = in.nextInt(); int je = in.nextInt(); printShortestPath(n, is, js, ie, je); in.close(); } }