static void Main(string[] args)
var numbers = Console.ReadLine().Split(",").Select(int.Parse).ToList();
var numbers40r8 = numbers.Where(n => n % 10 == 4 || n % 10 == 8).ToList();
var numbers50r7 = numbers.Where(n => n % 10 == 5 || n % 10 == 7).ToList();
var numbersSum15 = new List <int>();
Console.WriteLine(string.Join(",", numbers40r8));
Console.WriteLine(string.Join(",", numbers50r7));
for (int i - 0; i < numbers.Count; i++)
numbersSum15.Add(numbers[i]);
Console.WriteLine(string.Join(", ", numbersSum15));