using System;
public class Program
{
public static void Main()
int n = Convert.ToInt32(Console.ReadLine());
//Console.Write("1"+n+"1");
int q = n;
int count = 0;
while (q > 0)
q /= 10;
count++;
}
int i = Convert.ToInt32(Math.Pow(10, count));
int p = i + n;
int m = p * 10 + 1;
Console.WriteLine(m);