using System;
using System.Linq;
public class Test
{
public static void Main()
{
string record1 = "1,3,5,7,9,10";
string record2 = "4,5,10";
string[] records = new[] { record1, record2 };
string record = records.FirstOrDefault(r => r.Split(',').Any(s => s == "1"));
Console.WriteLine(record);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKCQlzdHJpbmcgcmVjb3JkMSA9ICIxLDMsNSw3LDksMTAiOwoJCXN0cmluZyByZWNvcmQyID0gIjQsNSwxMCI7CgkJc3RyaW5nW10gcmVjb3JkcyA9IG5ld1tdIHsgcmVjb3JkMSwgcmVjb3JkMiB9OwoJCXN0cmluZyByZWNvcmQgPSByZWNvcmRzLkZpcnN0T3JEZWZhdWx0KHIgPT4gci5TcGxpdCgnLCcpLkFueShzID0+IHMgPT0gIjEiKSk7CgkJQ29uc29sZS5Xcml0ZUxpbmUocmVjb3JkKTsKCX0KfQ==