using System.Collections.Generic;
public static void Main()
int numberOfSongs = int.Parse(Console.ReadLine());
List<Song> songs = new List<Song>();
for (int i = 0; i < numberOfSongs; i++)
string[] songArray = Console.ReadLine()
string typeList = songArray[0];
string name = songArray[1];
string time = songArray[2];
Song song = new Song(typeList, name, time);
string chosenSongs = Console.ReadLine();
for (int i = 0; i < songs.Count; i++)
Song currentSong = songs[i];
if (chosenSongs == "all")
Console.WriteLine(currentSong.Name);
else if (chosenSongs == currentSong.TypeList)
Console.WriteLine(currentSong.Name);
public Song(string typeList, string name, string time)
public string TypeList { get; set; }
public string Name { get; set; }
public string Time { get; set; }