public static void Main()
var passengers = int.Parse(Console.ReadLine());
var stops = int.Parse(Console.ReadLine());
for (int i = 0;1< stops; i++)
getout = int.Parse(Console.ReadLine());
get = int.Parse(Console.ReadLine());
all = (passengers - getout) + get +2;
getout = int.Parse(Console.ReadLine());
all = all - (getout + 2);
int getin = int.Parse(Console.ReadLine());
Console.WriteLine($"The final number of passengers is : {end}");