using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
int cash = 1000;
int _valeu = 1;
int valeu = _valeu;
List<int> red = new List<int> {1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,32,34,36};
Random R = new Random();
int role = 0;
List<string> role_resulte = new List<string>();
for (int i = 0; i < 10000 ; i++)
cash = cash - valeu;
if(cash <= 0)
Console.WriteLine("brok");
break;
}
else
role = R.Next(37);
if(red.Contains(role))
cash = cash + valeu * 2;
valeu = _valeu;
valeu = valeu * 2;
Console.WriteLine(cash.ToString());