using System;
public class Program
{
public static void Main()
int j = 0;
Console.WriteLine("כמה עולות המכוניות?");
int x = Int32.MaxValue;
// bool firstCar = true;
while (true){
int price = Int32.Parse(Console.ReadLine());
if (price <= 0){
break;
}
if (price > 10000){
j++;
if (/*firstCar ||*/ price < x){
x = price;
// firstCar = false;
Console.WriteLine("סכום המכוניות שעולות מעל 10000 הוא: " + j);
Console.WriteLine("המכונית הזולה ביותר: " + x);