import java.util.*; import java.io.*; import java.awt.geom.*; import java.math.*; public class No0277 { static final Scanner in = new Scanner(System.in); static final PrintWriter out = new PrintWriter(System.out,false); static void solve() { int n = in.nextInt(); res = new int[n]; Arrays.fill(res,Integer.MAX_VALUE); int[] s = new int[n-1]; int[] t = new int[n-1]; for (int i=0; i