using System.Collections; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; internal class Program { private const long mod = 998244353; public static void Main(string[] args) { var t = int.Parse(Console.ReadLine()); while (t-->0) { int n = int.Parse(Console.ReadLine()); int sum = n * (n + 1) / 2; if (sum % 2!=0) { Console.WriteLine(-1); } else { string ans = ""; int rest = sum / 2; for (int i = n; i >= 1; i--) { if (rest >= i) { rest -= i; ans += '1'; } else { ans += '0'; } } ans = String.Join("", ans.Reverse()); Console.WriteLine(ans); } } } public static List mkar(int n, int val) { List res = new List(n); for(int i=0;i