using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace N { class P { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] a; bool[] Ans = new bool[10] ; for(int i=0;i