using System.Collections.Generic;
public static void Main()
var weapons = new List<string>()
StringBuilder sb = new();
sb.Append("((is:titan or is:hunter) and is:armor) or ((-is:invault and is:armor) or");
sb.Append("(-is:invault and is:weapon) or ");
"((is:kineticslot and -(\n" +
.Select(s => $"is:{s} or")
.Where((_, i) => i % 2 == 1))
.Select(s => $"is:{s} or")
.Where((_, i) => i % 2 == 1))
.Select(s => $"is:{s} or")
.Where((_, i) => i % 2 == 1))
sb.Append(") and not ((is:invault and is:deepsight) or tag:archive)");
System.Console.WriteLine(sb.ToString());
System.Console.WriteLine("\n\n\n");
System.Console.WriteLine(sb.ToString().Replace("\n", " "));