// Arup Guha
// 9/1/2026
// Solution to Fall 2026 COP 3330 Program #2B: Secret Song

import java.util.*;

public class secretsong {

	public static void main(String[] args) {
	
		// Get # of songs.
		Scanner stdin = new Scanner(System.in);
		System.out.println("How many secret song choices are there?");
		int numSongs = Integer.parseInt(stdin.nextLine());
		
		// Create random object, generate random integer (in between 0 and numSongs-1).
		Random rndObj = new Random();
		int choice = rndObj.nextInt(numSongs);
		
		// Set result to a dummy value.
		String result = "";
		
		// Go through each leg of the tour.
		for (int i=0; i<numSongs; i++) {
			
			// Read in this song title.
			System.out.println("What is the title of the choice #"+(i+1)+"?");
			String title = stdin.nextLine();
			
			// Store as answer if the random number matches!
			if (i == choice)
				result = title;
		}
		
		// Ta da!
		System.out.println("The secret song for the concert is: "+result);
	}
}