using System.Collections.Generic;
public static void Main()
Dictionary<int, int> game = new Dictionary<int, int>();
Random rand = new Random(0);
int key = rand.Next(1,20);
int price = rand.Next(1,10000);
if(!game.ContainsKey(key))
int input = int.Parse(Console.ReadLine());
if(game.TryGetValue(input, out prize))
Console.WriteLine("You earned {0} dollars!", prize);
Console.WriteLine("You are lucky! You would have lost if you guessed the following numbers:");
if(!game.ContainsKey(num_count))
Console.Write(" {0} ", num_count);
Console.WriteLine("BANG!You die!");
foreach(KeyValuePair<int, int> element in game)
game.TryGetValue(element.Key, out a);
maxvalue = element.Value;
Console.WriteLine("You are unlucky!If you guessed {0}, you would win a lot", max);