using System.Diagnostics;
public static int InputInt(string prompt)
Console.Write("Enter " + prompt + ":");
return Convert.ToInt32(Console.ReadLine());
public static void Main(string[] args)
int v = InputInt("the speed");
int t = InputInt("the time");
int mark = (mkad + (v*t) % mkad) % mkad;
Console.WriteLine("Ivan will be at mark " + mark);