using System.Collections.Generic;
public static void Main()
Dictionary<int, int> openWith = new Dictionary<int, int>();
List<int> list = new List<int>();
Random rnd = new Random();
Random prize = new Random();
int num = rnd.Next(1, 21);
int num2 = rnd.Next(1, 10001);
if (!openWith.ContainsKey(num)){
Console.WriteLine("Please input integers: (a number from 1 to 20)");
string input = Console.ReadLine();
List<int> outoflist = new List<int>();
if (!openWith.ContainsKey(j)){
if(openWith.TryGetValue(j, out maxv)){
int.TryParse(input,out num3);
if(openWith.TryGetValue(num3, out value2)){
Console.WriteLine("You earned {0} dollars!",value2);
Console.WriteLine("You are lucky! You could have lost if you guessed the following numbers:");
foreach (int name in outoflist){
Console.WriteLine("{0}", name);
Console.WriteLine("BANG! You die!");
Console.WriteLine("You are unlucky! If you guessed {0}, you would have won the most money!", maxkey);