public static void Main()
int distance1 = int.Parse(Console.ReadLine());
int distance2 = int.Parse(Console.ReadLine());
int length1 = distance1 / 1000;
int length2 = distance2 / 1000;
double firmprice2 = 0.90 + (1 * 0.90);
double firm2 = 1 + (3 * 0.85);
double sum = firmprice2 + firm2;
else if (distance1 < 5000)
else if (distance1 < 2000)