using System.Collections.Generic;
public static void Main()
List<int> lista = new List<int>();
List<int> listb = new List<int>();
for (int i = 0; i < 10; i++)
Random rnd = new Random();
while (lista.Count != 10)
for (int i = 0; i < 10; i++)
Random rnd = new Random();
while (listb.Count != 10)
int x = rnd.Next(1, 10001);
Dictionary<int, int> dict = new Dictionary<int, int>();
for (int i = 0; i < 10; i++)
dict.Add(lista[i], listb[i]);
Console.WriteLine("Add a no.");
string input = Console.ReadLine();
int.TryParse(input,out num);
string[] tokens = input.Split();
if (dict.ContainsKey(num))
Console.WriteLine("You earned {0} dollars!",dict[num]);
Console.WriteLine("BANG! You die!");