using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
public class Program
{
public static void Main()
//Console.WriteLine("Hello World");
// List<string> ll=new List<string>(){"Rob,Friend","holly,Family","Billy,Friend","This is not a name"};
//Regex pattern=new Regex("+ ,*&^!@#$");
// Regex pattern=new Regex("([^,]*),(.*)");
Regex pattern=new Regex(",");
string ll="piya,diya";
var query= from a in ll
let b=pattern.Match(a)
where b.Success
select new{name=b.Groups[1].Value,
Relationship=b.Groups[2].Value};
foreach(var c in query)
Console.Write(c+"\n");
}