using System.Collections.Generic;
public static void Main()
Random key = new Random(0);
Random val = new Random(0);
List<int> keyList = new List<int>();
Dictionary<int, int> dict = new Dictionary<int,int>();
for(int i=0; i<10; i++) {
int tempKey = key.Next(1,20);
int tempVal = key.Next(1,10000);
while(keyList.Contains(tempKey)){
tempKey = key.Next(1,20);
dict.Add(tempKey,tempVal);
Console.WriteLine("Please input integers: (in one line)");
string input = Console.ReadLine();
int inNum = Int32.Parse(input);
if(keyList.Contains(inNum)){
Console.WriteLine("You earned {0} dollars!", dict[inNum]);
Console.WriteLine("You are lucky! You could have lost if you guessed the following numbers:");
if(!keyList.Contains(i)) Console.Write("{0} ", i);
Console.WriteLine("BANG! You die!");
if(keyList.Contains(i) && dict[i] > max) {
Console.WriteLine("You are unlucky! if you guess: {0}, you would have won the most money of {1}!", maxKey, max);