using System;
public class Program
{
public static void Main()
int x = 5;
while(x < 2019){
x += 9;
x *= 2;
x -= 6;
x /= 2;
}
Console.WriteLine(x);