using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = Convert.ToInt32(Console.ReadLine());
            List<int> a = new List<int>();
            for (int i = 2; i < n; i++)
                a.Add(i);
            int k = 0;
            while (k < a.Count())
            {
                int x = a[k];
                a.RemoveAll(p => p % x == 0 && p > x);
                k++;
            }
            foreach (int x in a)
                Console.Write(x);
            Console.ReadKey();
        }


    }
}
