using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using static System.Math; partial class Program { static int[] dx = new int[] { 1, 0, -1, 0, 1, -1, -1, 1 }; static int[] dy = new int[] { 0, 1, 0, -1, 1, 1, -1, -1 }; //const long mod = 1000000007; const long mod = 998244353; static int N; static int K; static int[] T; static int[] U; public void Solve() { (N, K) = io.GetMulti(); T = io.GetIntArray(); U = io.GetIntArray(); for (int i = 0; i < N / 2; i++) { io.Print($"{1} {1} {1}"); } for (int i = N / 2; i < N; i++) { io.Print($"{2} {1} {1}"); } } public int CalcX(int B, int M, int E, int T) { var y = (B - M - 1) / E; return 0; } IO io = new IO(); static void Main() { Console.SetIn(new StreamReader(Console.OpenStandardInput(8192))); Console.SetOut(new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); var program = new Program(); //var t = new Thread(program.Solve, 134217728); //t.Start(); //t.Join(); program.Solve(); Console.Out.Flush(); Console.Read(); } } //------------------------------------------------------------------------------------------------------------------ public static class Ex { public static void yesno(this bool b) => Console.WriteLine(b ? "yes" : "no"); public static void YesNo(this bool b) => Console.WriteLine(b ? "Yes" : "No"); public static void YESNO(this bool b) => Console.WriteLine(b ? "YES" : "NO"); public static void Yes() => Console.WriteLine("Yes"); public static void YES() => Console.WriteLine("YES"); public static void No() => Console.WriteLine("No"); public static void NO() => Console.WriteLine("NO"); public static void M1() => Console.WriteLine("-1"); public static void TakahashiAoki(this bool b) => Console.WriteLine(b ? "Takahashi" : "Aoki"); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool Chmax(ref this int a, int b) { if (a < b) { a = b; return true; } else return false; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool Chmin(ref this int a, int b) { if (a > b) { a = b; return true; } else return false; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool Chmax(ref this long a, long b) { if (a < b) { a = b; return true; } else return false; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool Chmin(ref this long a, long b) { if (a > b) { a = b; return true; } else return false; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool Chmin(ref this long a, long b) { if (a > b) { a = b; return true; } else return false; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool Chmax(ref this T a, T b) where T : struct, IComparable { if (b.CompareTo(a) > 0) { a = b; return true; } else return false; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool Chmin(ref this T a, T b) where T : struct, IComparable { if (b.CompareTo(a) < 0) { a = b; return true; } else return false; } /// /// constraintを満たす最小のインデックスを返します。 /// /// T key が満たすべき制約 /// 制約を満たす最小のインデックス(0-indexed) public static int LowerBound(this IList ls, Func constraint) { var ng = -1; var ok = ls.Count; while (ok - ng > 1) { var mid = (ok + ng) / 2; if (constraint(ls[mid])) ok = mid; else ng = mid; } return ok; } public static void Swap(this IList arr, int a, int b) => (arr[a], arr[b]) = (arr[b], arr[a]); public static long[] GetCum(this IList ls) { var res = new long[ls.Count + 1]; for (int i = 0; i < ls.Count; i++) res[i + 1] = res[i] + ls[i]; return res; } public static T[] GetCum(this IList ls, bool fromLeft, T gen, Func func) { var res = new T[ls.Count + 1]; res.AsSpan().Fill(gen); if (fromLeft) { for (int i = 0; i < ls.Count; i++) res[i + 1] = func(res[i], ls[i]); } else { for (int i = ls.Count; i > 0; i--) res[i - 1] = func(res[i], ls[i - 1]); } return res; } public static T[] Repeat(this T element, int N) { var res = new T[N]; res.AsSpan().Fill(element); return res; } public static T[][] Repeat(this T element, int H, int W) { var res = new T[H][]; for (int i = 0; i < H; i++) { res[i] = new T[W]; res[i].AsSpan().Fill(element); } return res; } public static T[][][] Repeat(this T element, int H, int W, int R) { var res = new T[H][][]; for (int i = 0; i < H; i++) { res[i] = new T[W][]; for (int j = 0; j < W; j++) { res[i][j] = new T[R]; res[i][j].AsSpan().Fill(element); } } return res; } } class IO { public string GetStr() => Console.ReadLine().Trim(); public char GetChar() => Console.ReadLine().Trim()[0]; public int GetInt() => int.Parse(Console.ReadLine().Trim()); public long GetLong() => long.Parse(Console.ReadLine().Trim()); public double GetDouble() => double.Parse(Console.ReadLine().Trim()); public decimal GetDecimal() => decimal.Parse(Console.ReadLine().Trim()); public string[] GetStrArray() => Console.ReadLine().Trim().Split(' '); public string[][] GetStrArray(int N) { var res = new string[N][]; for (int i = 0; i < N; i++) res[i] = Console.ReadLine().Trim().Split(' '); return res; } public int[] GetIntArray() => Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToArray(); public int[][] GetIntArray(int N) { var res = new int[N][]; for (int i = 0; i < N; i++) res[i] = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToArray(); return res; } public long[] GetLongArray() => Console.ReadLine().Trim().Split(' ').Select(long.Parse).ToArray(); public long[][] GetLongArray(int N) { var res = new long[N][]; for (int i = 0; i < N; i++) res[i] = Console.ReadLine().Trim().Split(' ').Select(long.Parse).ToArray(); return res; } public decimal[] GetDecimalArray() => Console.ReadLine().Trim().Split(' ').Select(decimal.Parse).ToArray(); public decimal[][] GetDecimalArray(int N) { var res = new decimal[N][]; for (int i = 0; i < N; i++) res[i] = Console.ReadLine().Trim().Split(' ').Select(decimal.Parse).ToArray(); return res; } public char[] GetCharArray() => Console.ReadLine().Trim().Split(' ').Select(char.Parse).ToArray(); public double[] GetDoubleArray() => Console.ReadLine().Trim().Split(' ').Select(double.Parse).ToArray(); public double[][] GetDoubleArray(int N) { var res = new double[N][]; for (int i = 0; i < N; i++) res[i] = Console.ReadLine().Trim().Split(' ').Select(double.Parse).ToArray(); return res; } public char[][] GetGrid(int H) { var res = new char[H][]; for (int i = 0; i < H; i++) res[i] = Console.ReadLine().Trim().ToCharArray(); return res; } public List[] GetUnweightedAdjanceyList(int V, int E, bool isDirected, bool isNode_0indexed) { var ls = new List[V]; for (int i = 0; i < V; i++) ls[i] = new List(); for (int i = 0; i < E; i++) { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); if (isNode_0indexed == false) { input[0]--; input[1]--; } ls[input[0]].Add(input[1]); if (isDirected == false) ls[input[1]].Add(input[0]); } return ls; } public List<(int to, long dist)>[] GetWeightedAdjacencyList(int V, int E, bool isDirected, bool isNode_0indexed) { var ls = new List<(int to, long dist)>[V]; for (int i = 0; i < V; i++) ls[i] = new List<(int to, long dist)>(); for (int i = 0; i < E; i++) { var str = Console.ReadLine().Split(' '); var a = int.Parse(str[0]); var b = int.Parse(str[1]); var c = long.Parse(str[2]); if (isNode_0indexed == false) { a--; b--; } ls[a].Add((b, c)); if (isDirected == false) ls[b].Add((a, c)); } return ls; } [MethodImpl(MethodImplOptions.AggressiveInlining)] bool eq() => typeof(T).Equals(typeof(U)); [MethodImpl(MethodImplOptions.AggressiveInlining)] T ct(U a) => (T)Convert.ChangeType(a, typeof(T)); [MethodImpl(MethodImplOptions.AggressiveInlining)] T cv(string s) => eq() ? ct(int.Parse(s)) : eq() ? ct(long.Parse(s)) : eq() ? ct(double.Parse(s)) : eq() ? ct(decimal.Parse(s)) : eq() ? ct(s[0]) : ct(s); [MethodImpl(MethodImplOptions.AggressiveInlining)] void Multi(out T a) => a = cv(GetStr()); [MethodImpl(MethodImplOptions.AggressiveInlining)] void Multi(out T a, out U b) { var ar = GetStrArray(); a = cv(ar[0]); b = cv(ar[1]); } [MethodImpl(MethodImplOptions.AggressiveInlining)] void Multi(out T a, out U b, out V c) { var ar = GetStrArray(); a = cv(ar[0]); b = cv(ar[1]); c = cv(ar[2]); } [MethodImpl(MethodImplOptions.AggressiveInlining)] void Multi(out T a, out U b, out V c, out W d) { var ar = GetStrArray(); a = cv(ar[0]); b = cv(ar[1]); c = cv(ar[2]); d = cv(ar[3]); } [MethodImpl(MethodImplOptions.AggressiveInlining)] void Multi(out T a, out U b, out V c, out W d, out X e) { var ar = GetStrArray(); a = cv(ar[0]); b = cv(ar[1]); c = cv(ar[2]); d = cv(ar[3]); e = cv(ar[4]); } [MethodImpl(MethodImplOptions.AggressiveInlining)] void Multi(out T a, out U b, out V c, out W d, out X e, out Y f) { var ar = GetStrArray(); a = cv(ar[0]); b = cv(ar[1]); c = cv(ar[2]); d = cv(ar[3]); e = cv(ar[4]); f = cv(ar[5]); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public (T, U) GetMulti() { var ar = Console.ReadLine().Split(' '); return (cv(ar[0]), cv(ar[1])); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public (T, U, V) GetMulti() { var ar = Console.ReadLine().Split(' '); return (cv(ar[0]), cv(ar[1]), cv(ar[2])); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public (T, U, V, W) GetMulti() { var ar = Console.ReadLine().Split(' '); return (cv(ar[0]), cv(ar[1]), cv(ar[2]), cv(ar[3])); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public (T, U, V, W, X) GetMulti() { var ar = Console.ReadLine().Split(' '); return (cv(ar[0]), cv(ar[1]), cv(ar[2]), cv(ar[3]), cv(ar[4])); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public (T, U, V, W, X, Y) GetMulti() { var ar = Console.ReadLine().Split(' '); return (cv(ar[0]), cv(ar[1]), cv(ar[2]), cv(ar[3]), cv(ar[4]), cv(ar[5])); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Print() => Console.WriteLine(); [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Print(T t) => Console.WriteLine(t); [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Print(string separator, IList ls) => Console.WriteLine(string.Join(separator, ls)); public void Debug(IList ls) { Console.Error.WriteLine(); Console.Error.WriteLine("[" + string.Join(",", ls) + "]"); } public void Debug(IList> ls) { Console.Error.WriteLine(); foreach (var l in ls) { Console.Error.WriteLine("[" + string.Join(",", l) + "]"); } Console.Error.WriteLine(); } }