using System.Collections;
using System.Collections.Generic;
public static void Main (string[] args) {
ArrayList name = new ArrayList();
List<long> contactnum = new List<long>();
Console.WriteLine("----------PHONE BOOK----------");
Console.WriteLine("\n[1] Create New Contact");
Console.WriteLine("[2] View all Contacts");
Console.WriteLine("[3] Exit Application");
Console.WriteLine("-------------------------------");
string choice = Console.ReadLine();
Console.WriteLine("\n-----CREATE NEW CONTACT-----");
Console.WriteLine("Name: ");
name.Add(Console.ReadLine());
Console.WriteLine("Contact number: ");
long number = Convert.ToInt64(Console.ReadLine());
Console.WriteLine("New contact added. \n");
Console.WriteLine("-------LIST OF CONTACTS-------\n");
Console.WriteLine("------------------------------");
for(int a = 0, size = name.Count; a < size; a++)
Console.WriteLine(name + " " + contactnum);
Console.WriteLine("------------------------------");
Console.WriteLine("\nPhone book closed.");
Console.WriteLine("\nInvalid input. Please try again.");