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

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = Convert.ToInt32(Console.ReadLine());
            for (int i = x-1; i >= 0; i--)
            {
                if (x == 1)
                {
                    Console.WriteLine(1);
                    break;
                }
                if(x==2)
                {
                    Console.WriteLine(2);
                    break;
                }
                if (x % i != 0)
                {
                    Console.WriteLine(x - i);
                    break;
                }
            }

        }
    }
}

using System;

namespace Задача_1
{
    class Program
    {
        static void Main(string[] args)
        {
            if("2" != Console.ReadLine())
            {
                Console.WriteLine(1);
            } else
            {
                Console.WriteLine(2);
            }
            //Так можно? | So it is possible?
        }
    }
}

using System;
namespace codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = int.Parse(Console.ReadLine());
            Console.WriteLine(a==2?2:1);
        }
    }
}

using System;
using System.Linq;
using System.Collections.Generic;

static class UtilityMethods
{
	public static void Swap<T>(ref T a, ref T b)
	{
		T t = a;
		a = b;
		b = t;
	}

	public static int StrToInt(string s)
	{
		int number = 0;
		for (int i = s[0] == '-' ? 1 : 0; i < s.Length; i++)
			number = number * 10 + (s[i] - '0');
		return s[0] == '-' ? -number : number;
	}
	public static long StrToLong(string s)
	{
		long number = 0;
		for (int i = s[0] == '-' ? 1 : 0; i < s.Length; i++)
			number = number * 10 + (s[i] - '0');
		return s[0] == '-' ? -number : number;
	}

	public static string ReadString() => Console.ReadLine();
	public static int ReadInt() => StrToInt(ReadString());
	public static long ReadLong() => StrToLong(ReadString());
	public static double ReadDouble() => double.Parse(ReadString());

	public static string[] ReadStringArray() => ReadString().Split();
	public static int[] ReadIntArray() => Array.ConvertAll(ReadStringArray(), StrToInt);
	public static long[] ReadLongArray() => Array.ConvertAll(ReadStringArray(), StrToLong);
	public static double[] ReadDoubleArray() => ReadStringArray().Select(double.Parse).ToArray();

	public static void WriteLine(object a) => Console.WriteLine(a);
	public static void WriteLineArray(object[] a, string separator)
	{
		if (a.Length < 100)
		{
			Console.WriteLine(String.Join(separator, a));
			return;
		}
		const int MAXLEN = 1000000;
		int len = 0, j = 0;
		System.Text.StringBuilder str;
		string[] b = Array.ConvertAll(a, x => x.ToString());
		for (int i = 0; i < b.Length - 1; i++)
		{
			len += b[i].Length + separator.Length;
			if (len >= MAXLEN)
			{
				str = new System.Text.StringBuilder(len);
				for (; j <= i; j++)
				{
					str.Append(b[j]);
					str.Append(separator);
				}
				Console.Write(str);
				len = 0;
			}
		}
		str = new System.Text.StringBuilder(len);
		for (; j < b.Length - 1; j++)
		{
			str.Append(b[j]);
			str.Append(separator);
		}
		Console.Write(str);
		Console.WriteLine(b.Last());
	}
}

class Program
{
	static void Main()
	{
		int n = UtilityMethods.ReadInt();
		UtilityMethods.WriteLine(n == 2 ? 2 : 1);
		Console.ReadLine();
	}
}

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

namespace avito_2018_12_16
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int res = 1;
            if (n == 2) res = 2;
            Console.WriteLine(res.ToString());
        }
    }
}

using System;

namespace CSharp
{
    class _1081A
    {
        public static void Main() => Console.WriteLine(int.Parse(Console.ReadLine()) == 2 ? 2 : 1);
    }
}

using System;

public class Solution
{
    static void Main(String[] args)
    {
        int n = int.Parse(Console.ReadLine());
        if (n == 1)
        {
            Console.WriteLine(n);
        }
        else if (n == 2)
        {
            Console.WriteLine(n);
        }
        else
        {
            Console.WriteLine(1);
        }
    }
}

using System;

namespace codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            int n = int.Parse(s);
            Console.WriteLine(n == 2 ? 2 : 1);
        }
    }
}

using System;
using System.Linq;
using static System.Console;
class Solution
{
    static void Main(string[] args)
    {
        int a = Convert.ToInt32(ReadLine());
        WriteLine(a==2?2:1);
    }
}

using System;
using System.Collections.Generic;
class Program
{
	static void Main(string[] args)
	{
		int T = int.Parse(Console.ReadLine());
		int ans = 1;
		if(T==2){
			ans = 2;
		}
		Console.WriteLine(ans);
	}
}

using System;

namespace NetExperiment
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            if (n == 2)
                Console.WriteLine(2);
            else
                Console.WriteLine(1);
        }
    }
}

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

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            if(int.Parse(Console.ReadLine())!=2)

            Console.WriteLine(1);
            else
            Console.WriteLine(2);
        }
    }
}

using System;
using System.IO;
using System.Text;

namespace Definite_Game
{
    internal class Program
    {
        private static readonly StreamReader reader = new StreamReader(Console.OpenStandardInput(1024*10), Encoding.ASCII, false, 1024*10);
        private static readonly StreamWriter writer = new StreamWriter(Console.OpenStandardOutput(1024*10), Encoding.ASCII, 1024*10);

        private static void Main(string[] args)
        {
            writer.WriteLine(Solve());
            writer.Flush();
        }

        private static string Solve()
        {
            int n = Next();
            if (n == 2)
                return "2";
            return "1";
        }

        private static int Next()
        {
            int c;
            int res = 0;
            do
            {
                c = reader.Read();
                if (c == -1)
                    return res;
            } while (c < '0' || c > '9');
            res = c - '0';
            while (true)
            {
                c = reader.Read();
                if (c < '0' || c > '9')
                    return res;
                res *= 10;
                res += c - '0';
            }
        }
    }
}

using System;
using System.Linq;

namespace ConsoleApplication18
{
    internal class Program
    {
        public static void Main(string[] args)
        {

            if(Console.ReadLine() == "2") Console.WriteLine(2);
            else Console.WriteLine(1);
        }
    }
}

#if DEBUG
using System.Reflection;
using System.Threading.Tasks;
#endif

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Numerics;
using System.Globalization;

#if DEBUG
using System.Diagnostics;
#endif

namespace avA
{
    class Program
    {
        static string _inputFilename = "input.txt";
        static string _outputFilename = "output.txt";
        static bool _useFileInput = false;
        const string _delim = "!";

        static void Main(string[] args)
        {
            StreamWriter file = null;
#if DEBUG
            var testNumber = 0;
            var timer = new Stopwatch();
            foreach (var test in GetTests())
            {

                timer.Start();

                var defaultColor = Console.ForegroundColor;
                Console.ForegroundColor = ConsoleColor.DarkYellow;
                Console.WriteLine($"<!-- TEST #{testNumber} -->");
                Console.ForegroundColor = defaultColor;
                Console.SetIn(test);

#else
            if (_useFileInput)
            {
                Console.SetIn(File.OpenText(_inputFilename));
                file = new StreamWriter(_outputFilename);
                Console.SetOut(file);
            }
#endif

            try
            {
                Solution();
            }
            finally
            {
                if (_useFileInput)
                {
                    file.Close();
                }
            }

#if DEBUG
                timer.Stop();

                Console.ForegroundColor = ConsoleColor.DarkYellow;
                Console.WriteLine($"<!-- TEST #{testNumber} FINISHED IN {timer.Elapsed.ToString(@"ss\:fff")}-->");
                Console.ForegroundColor = defaultColor;

                timer.Reset();
                testNumber++;
            }
#endif
        }

        static void Solution()
        {
            #region SOLUTION
            var n = ReadInt();
            if (n == 2)
            {
                Console.WriteLine(2);
                return;
            }

            Console.WriteLine(1);
            //var n = readInt();
            //var m = readInt();

            //var a = readIntArray();
            //var b = readIntArray();
            #endregion
        }

        static int ReadInt()
        {
            return int.Parse(Console.ReadLine());
        }

        static long ReadLong()
        {
            return long.Parse(Console.ReadLine());
        }

        static int[] ReadIntArray()
        {
            return Console.ReadLine().Split(' ').Where(i => !string.IsNullOrEmpty(i)).Select(i => int.Parse(i)).ToArray();
        }

        static long[] ReadLongArray()
        {
            return Console.ReadLine().Split(' ').Where(i => !string.IsNullOrEmpty(i)).Select(i => long.Parse(i)).ToArray();
        }

#if DEBUG
        static IEnumerable<TextReader> GetTests()
        {
            var tests = new List<string>();
            var resName = Assembly.GetCallingAssembly().GetManifestResourceNames()[0];
            using (var resource = new StreamReader(Assembly.GetCallingAssembly().GetManifestResourceStream(resName)))
            {
                while (true)
                {
                    var nextText = new StringBuilder();
                    var endOfFile = false;
                    while (true)
                    {
                        var line = resource.ReadLine();

                        endOfFile = line == null;
                        if (endOfFile)
                        {
                            break;
                        }

                        if (line.Equals(_delim, StringComparison.Ordinal))
                        {
                            break;
                        }

                        nextText.AppendLine(line);
                    }

                    yield return new StringReader(nextText.ToString());

                    if (endOfFile)
                    {
                        break;
                    }
                }
            }
        }
#endif
    }
}

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

namespace AlgoHelper
{
    public class Pair
    {
        public int X { get; set; }
        public int Y { get; set; }

        public Pair(int x, int y)
        {
            X = x;
            Y = y;
        }

        //public override bool Equals(object obj)
        //{
        //    var pair = obj as Pair;
        //    return X + Y == pair.X + pair.Y;
        //}

        //public override int GetHashCode()
        //{
        //    var hashCode = 1861411795;
        //    hashCode = hashCode * -1521134295 + X.GetHashCode();
        //    hashCode = hashCode * -1521134295 + Y.GetHashCode();
        //    return hashCode;
        //}

        public override string ToString()
        {
            return $"X = {X} Y = {Y}";
        }
    }

    class PairComparer : IComparer<Pair>
    {
        public int Compare(Pair x, Pair y)
        {
            return y.Y.CompareTo(x.Y);
        }
    }

    class Person
    {
        public int Age { get; set; }
        public string Name { get; set; }

    }

    class Program
    {
        static void Main(string[] args)
        {
            int s = int.Parse(Console.ReadLine());
            if(s<=2) Console.WriteLine(s);
            else Console.WriteLine(1);

        //    Console.ReadKey();
        }

        static int makingAnagrams(string s1, string s2)
        {
            int length = s1.Length + s2.Length;

            int[] freqA = frequency(s1);
            int[] freqB = frequency(s2);

            Console.WriteLine(string.Join("|",freqA));
            Console.WriteLine(string.Join("|", freqB));

            int count = 0;

            for (int i = 0; i < freqA.Length; i++)
            {
                if (freqA[i] != freqB[i]) count++;
            }

            return length - count;
        }
        public static int firstMissingPositive(int[] a)
        {
            int missing = 1;

            HashSet<int> set = new HashSet<int>();

            for (int i = 0; i < a.Length; i++)
            {
                if(a[i]>missing)
                {
                    set.Add(a[i]);
                }
                else if(a[i] == missing)
                {
                    if(!set.Contains(missing+1))
                    {
                        missing++;
                    }
                    else
                    {
                        missing = returnNewMax(++missing, set);
                    }
                }
            }

            return missing;
        }

        private static int returnNewMax(int n, HashSet<int> set)
        {
            while(set.Contains(n))
            {
                n++;
            }

            return n;
        }

        private static bool checkForAllZeroes(string s)
        {
            foreach(char c in s)
            {
                if (c != '0') return false;
            }

            return true;
        }

        private static int getHigherNumber(int n,int max)
        {
            int currentLength = maxLength(n);

            if (currentLength < max)
            {
                int diff = max - currentLength;
                int newNumber = n * (int)Math.Pow(10, diff);
                return newNumber;
            }

            return n;
        }

        private static int maxLength(int n)
        {
            return n.ToString().Length;
        }

        static int gemstones(string[] arr)
        {
            int[][] frequencies = new int[arr.Length][];

            for (int i = 0; i < frequencies.Length; i++)
            {
                frequencies[i] = frequency(arr[i]);
            }

            int count = 0;
            bool flag = true;

            for (int i = 0; i < frequencies[0].Length; i++) //26
            {
                for (int j = 0; j < frequencies.Length - 1; j++)
                {
                    if (frequencies[j][i] == 0 || frequencies[j + 1][i] == 0)
                    {
                        flag = false;
                        break;
                    }
                }

                if (flag) count++;
                flag = true;
            }

            return count;
        }

        private static bool isFunny(string s)
        {
            int[] diff = difference(s);

            return isPalindrome(diff);
        }

        private static int []  difference (string a)
        {
            int[] ans = new int[a.Length - 1];

            for (int i = 0; i < a.Length - 1; i++)
            {
                ans[i] = Math.Abs(a[i] - a[i + 1]);
            }

            return ans;
        }

        private static bool isPalindrome(int [] a)
        {
            for(int i=0;i<a.Length/2;i++)
            {
                if (a[i] != a[a.Length - 1 - i]) return false;
            }

            return true;
        }

        private static bool hasSubstring(string a, string b)
        {
            int[] freqA = frequency(a);
            int[] freqB = frequency(b);

            for (int i = 0; i < freqA.Length; i++)
            {
                if (freqA[i]!=0 && freqA[i] == freqB[i]) return true;
            }

            return false;
        }

        private static int LowerBound(int [] a, int target)
        {
            int lo = 0;
            int hi = a.Length - 1;
            int ans = -1;

            while(lo<=hi)
            {
                int med = hi - (hi - lo) / 2;

                if (target == a[med])
                {
                    ans = med;
                    hi = med - 1;
                }
                else if (target > a[med])
                {
                    lo = med + 1;
                }

                else hi = med - 1;
            }

            return ans;
        }

        private static string randomString(Random r)
        {
            int l = r.Next(1,10);

            string s = string.Empty;

            for (int i = 0; i < l; i++)
            {
                s += char.ConvertFromUtf32(r.Next(96, 122));
            }

            return s;
        }

        private static int [] prefixMax(int [] a)
        {
            int max = a[a.Length - 1];

            Stack<int> stack = new Stack<int>();

            stack.Push(a[a.Length - 1]);

            int[] b = new int[a.Length];

            b[a.Length - 1] = -1;

            bool found = false;

            for (int i = a.Length - 2; i >=0; i--)
            {
                while (stack.Count > 0)
                {
                    int temp = stack.Peek();

                    if (temp > a[i])
                    {
                        b[i] = temp;
                        found = true;
                        break;
                    }
                    else
                    {
                        stack.Pop();
                    }
                }

                stack.Push(a[i]);
                if (!found) b[i] = -1;
                found = false;
            }

            return b;
        }

        private static bool hasTheSameLetters(string a, string b)
        {

            int[] freqA = frequency(a);
            int[] freqB = frequency(b);

            for (int i = 0; i < freqA.Length; i++)
            {
                if (freqA[i] != 0 && freqB[i] != 0) return true;
            }

            return false;
        }

        private static int [] frequency(string s)
        {
            int[] a = new int[26];

            foreach(char c in s)
            {
                a[c - 'a']++;
            }

            return a;
        }

        private static bool checkTwoArrays(int [] a,int []b)
        {
            for (int i = 0; i < a.Length; i++)
            {
                if (a[i] != b[i]) return false;
            }

            return true;
        }

        private static long solution(long[] a, long h, long lo,long hi)
        {
            long med = hi - (hi - lo) / 2;
            while(lo<=hi)
            {
                med = hi - (hi - lo) / 2;
                long ans = solve(a, med);
                Console.WriteLine($"ans = {ans} lo = {lo} med = {med}");
                if (ans <= h) hi = med - 1;
                else if (ans > h) lo = med + 1;
            }

            return lo;
        }

        private static long solve(long [] a,long k)
        {
            long sum = 0;

            for (int i = 0; i < a.Length; i++)
            {
                if (a[i]<=k)
                {
                    sum++;
                }
                else
                {
                    sum += (a[i] / k) + 1;
                }
            }

            return sum;
        }

        public static bool LemonadeChange(int[] bills)
        {
            if (bills[0] > 5) return false;

            Dictionary<int, int> dict = new Dictionary<int, int>();

            int currentAmount = 5;

            dict[5] = 1;

            for (int i = 1; i < bills.Length; i++)
            {
                if (bills[i] > 5)
                {
                    int charge = bills[i] - 5;
                    if (currentAmount < charge) return false;

                    currentAmount+=5;
                }
                else
                {
                    currentAmount += bills[i];
                    dict[5]++;
                }
            }

            return false;
        }

        private static int solve(int n,int x,int y,int d)
        {
            if ((y-x) % d == 0) {
                return (y - x) / d;
            }

            if((x-y)%d==0)
            {
                return (x - y) / d;
            }

            if((y-1)%d==0)
            {
                int firstStep = 0;

                if ((x-1)%d==0)
                {
                    firstStep = (x - 1) / d;
                }
                else
                {
                    firstStep = (x - 1) / d + 1;
                }

                int secodnStep = (y - 1) / d;

                return firstStep + secodnStep;

            }

            return -1;
        }
        public static int max(int [] a, int i)
        {
            if (i == a.Length - 1) return a[a.Length - 1];
            else return Math.Max(a[i], max(a, i + 1));
        }

        public static int MaxArea(int[] a)
        {
            int l = 0;
            int r = a.Length - 1;

            int max = int.MinValue;

            while (l < r)
            {
                max = Math.Max(max, Math.Min(a[l], a[r]) * (r - l));

                if (a[l] < a[r]) l++;
                else r--;
            }

            return max;
        }

        private static bool isPrime(int n)
        {
            if (n < 2) return false;

            for(int i=2;i*i<=n;i++)
            {
                if (n % i == 0) return false;
            }

            return true;
        }

        private static void Swap(ref char a, ref char b)
        {
            char temp = a;
            a = b;
            b = temp;
        }
    }
}

/*
csc -debug A.cs && mono --debug A.exe <<< "8"
*/

using System;
using System.Collections.Generic;
using System.Linq;

public class HelloWorld {
    static public void Main () {
        SolveCodeForces();
    }

    public static void SolveCodeForces() {
        var sc = new Scanner();
        var n = sc.NextLong();
        System.Console.WriteLine(n == 2 ? 2 : 1);
    }
}

public static class Helpers {
    public static T[] CreateArray<T>(int length, Func<int, T> itemCreate) {
        var result = new T[length];
        for (var i = 0; i < result.Length; i++)
            result[i] = itemCreate(i);
        return result;
    }

    public static T ElementWithMax<T>(this IEnumerable<T> seq, Func<T, long> func) {
        var bi = default(T);
        var bv = long.MinValue;
        foreach (var item in seq) {
            var v = func(item);
            if (v > bv) {
                bi = item;
                bv = v;
            }
        }
        return bi;
    }

    public static IEnumerable<int> IndicesWhere<T>(this IEnumerable<T> seq, Func<T, bool> cond) {
        var i = 0;
        foreach (var item in seq) {
            if (cond(item)) yield return i;
            i++;
        }
    }
}

public class Scanner
{
    private string[] line = new string[0];
    private int index = 0;

    public string Next() {
        if (line.Length <= index) {
            line = Console.ReadLine().Split(' ');
            index = 0;
        }
        var res = line[index];
        index++;
        return res;
    }

    public int NextInt() {
        return int.Parse(Next());
    }

    public long NextLong() {
        return long.Parse(Next());
    }

    public ulong NextUlong() {
        return ulong.Parse(Next());
    }

    public string[] Array() {
        line = Console.ReadLine().Split(' ');
        index = line.Length;
        return line;
    }

    public int[] IntArray() {
        var array = Array();
        var result = new int[array.Length];
        for (int i = 0; i < array.Length; i++)
            result[i] = int.Parse(array[i]);
        return result;
    }

    public long[] LongArray() {
        var array = Array();
        var result = new long[array.Length];
        for (int i = 0; i < array.Length; i++)
            result[i] = long.Parse(array[i]);
        return result;
    }

    public ulong[] UlongArray() {
        var array = Array();
        var result = new ulong[array.Length];
        for (int i = 0; i < array.Length; i++)
            result[i] = ulong.Parse(array[i]);
        return result;
    }
}

using System;
using System.Collections.Generic;
using System.IO;

namespace prA {
    class Program {
#if ONLINE_JUDGE
        private static readonly StreamReader reader = new StreamReader(Console.OpenStandardInput(1024 * 10), System.Text.Encoding.ASCII, false, 1024 * 10);
        private static readonly StreamWriter writer = new StreamWriter(Console.OpenStandardOutput(1024 * 10), System.Text.Encoding.ASCII, 1024 * 10);
#else
        private static readonly StreamWriter writer = new StreamWriter(@"..\..\output");
        private static readonly StreamReader reader = new StreamReader(@"..\..\input");
#endif

        static void Main(string[] args) {
            int v = NextInt();
            writer.Write(v == 2 ? "2" : "1");
            writer.Flush();
#if !ONLINE_JUDGE
            writer.Close();
#endif
        }
        private static int NextInt() {
            int c;
            int res = 0;
            do {
                c = reader.Read();
                if(c == -1)
                    return res;
            } while(c != '-' && (c < '0' || c > '9'));
            int sign = 1;
            if(c == '-') {
                sign = -1;
                c = reader.Read();
            }
            res = c - '0';
            while(true) {
                c = reader.Read();
                if(c < '0' || c > '9')
                    return res * sign;
                res *= 10;
                res += c - '0';
            }
        }
        private static long NextLong() {
            int c;
            long res = 0;
            do {
                c = reader.Read();
                if(c == -1)
                    return res;
            } while(c != '-' && (c < '0' || c > '9'));
            int sign = 1;
            if(c == '-') {
                sign = -1;
                c = reader.Read();
            }
            res = c - '0';
            while(true) {
                c = reader.Read();
                if(c < '0' || c > '9')
                    return res * sign;
                res *= 10;
                res += c - '0';
            }
        }
    }
}

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

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            int v = Convert.ToInt32(Console.ReadLine());
            if (v == 1 || v == 2) Console.WriteLine(v);
            else Console.WriteLine("1");
            Console.ReadLine();
        }
    }
}

using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
class Problem
{
    static void Main()
    {
        //--------------------------------input--------------------------------//

        int n = Convert.ToInt32( Console.ReadLine() );
        if(n == 2)
            Console.WriteLine( 2 );
        else
        Console.WriteLine( 1 );

        //--------------------------------solve--------------------------------/

    }

}

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

namespace aDefintieGame
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            bool done = true;
            while (done)
            {
                if (n - 1 != 0 && n % (n - 1) != 0)
                {
                    n = n - (n - 1);
                }
                else if (n - 2 != 0 && n % (n - 2) != 0)
                {
                    n = n - (n - 2);
                }
                else
                {
                    done = false;
                }
            }
            Console.WriteLine(n);
        }
    }
}

// Problem: 1081A - Definite Game
// Author: Gusztav Szmolik

using System;

class DefiniteGame
    {
    public static int Main ()
        {
        string line;
        string[] words;
        uint v;

        line = Console.ReadLine ();
        if (line == null)
            return -1;
        words = line.Split ();
        if (words.Length != 1)
            return -1;
        if (!UInt32.TryParse (words[0], out v))
            return -1;
        if (v < 1 || v > 1000000000)
            return -1;
        Console.WriteLine (v == 2 ? 2 : 1);
        return 0;
        }
    }

using System;
class Program
{
    static void Main()
    {
        Console.WriteLine(Console.ReadLine() == "2" ? "2" : "1");
    }
}

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

namespace A
{
    class Program
    {
        static int GetIntNumber()
        {
            return Convert.ToInt32(Console.ReadLine());
        }

        static long GetLongNumber()
        {
            return Convert.ToInt64(Console.ReadLine());
        }

        static int[] GetArrayIntNumber()
        {
            string[] str = Console.ReadLine().Split(' ');
            int[] array = new int[str.Length];
            for (int i = 0; i < str.Length; i++)
            {
                array[i] = Convert.ToInt32(str[i]);
            }
            return array;
        }

		static long[] GetArrayLongNumber()
		{
			string[] str = Console.ReadLine().Split(' ');
			long[] array = new long[str.Length];
			for (int i = 0; i < str.Length; i++)
			{
				array[i] = Convert.ToInt64(str[i]);
			}
			return array;
		}

		static void Main(string[] args)
        {
            int n = GetIntNumber();
            if (n > 2)
                Console.WriteLine(1);
            else
                Console.WriteLine(n);
		}
    }
}

using System;
namespace codeforces
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.ReadLine();
            Console.WriteLine(1);
        }
    }
}

using System;
using System.Linq;
using System.Collections.Generic;

static class UtilityMethods
{
	public static void Swap<T>(ref T a, ref T b)
	{
		T t = a;
		a = b;
		b = t;
	}

	public static int StrToInt(string s)
	{
		int number = 0;
		for (int i = s[0] == '-' ? 1 : 0; i < s.Length; i++)
			number = number * 10 + (s[i] - '0');
		return s[0] == '-' ? -number : number;
	}
	public static long StrToLong(string s)
	{
		long number = 0;
		for (int i = s[0] == '-' ? 1 : 0; i < s.Length; i++)
			number = number * 10 + (s[i] - '0');
		return s[0] == '-' ? -number : number;
	}

	public static string ReadString() => Console.ReadLine();
	public static int ReadInt() => StrToInt(ReadString());
	public static long ReadLong() => StrToLong(ReadString());
	public static double ReadDouble() => double.Parse(ReadString());

	public static string[] ReadStringArray() => ReadString().Split();
	public static int[] ReadIntArray() => Array.ConvertAll(ReadStringArray(), StrToInt);
	public static long[] ReadLongArray() => Array.ConvertAll(ReadStringArray(), StrToLong);
	public static double[] ReadDoubleArray() => ReadStringArray().Select(double.Parse).ToArray();

	public static void WriteLine(object a) => Console.WriteLine(a);
	public static void WriteLineArray(object[] a, string separator)
	{
		if (a.Length < 100)
		{
			Console.WriteLine(String.Join(separator, a));
			return;
		}
		const int MAXLEN = 1000000;
		int len = 0, j = 0;
		System.Text.StringBuilder str;
		string[] b = Array.ConvertAll(a, x => x.ToString());
		for (int i = 0; i < b.Length - 1; i++)
		{
			len += b[i].Length + separator.Length;
			if (len >= MAXLEN)
			{
				str = new System.Text.StringBuilder(len);
				for (; j <= i; j++)
				{
					str.Append(b[j]);
					str.Append(separator);
				}
				Console.Write(str);
				len = 0;
			}
		}
		str = new System.Text.StringBuilder(len);
		for (; j < b.Length - 1; j++)
		{
			str.Append(b[j]);
			str.Append(separator);
		}
		Console.Write(str);
		Console.WriteLine(b.Last());
	}
}

class Program
{
	static void Main()
	{
		UtilityMethods.WriteLine(1);
		Console.ReadLine();
	}
}

using System;
using System.Linq;
using static System.Console;
class Solution
{
    static void Main(string[] args)
    {
        WriteLine(1);
    }
}

using System;

namespace NetExperiment
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            Console.Write(1);
        }
    }
}

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

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(1);

        }
    }
}

using System;
using System.IO;
using System.Text;

namespace Definite_Game
{
    internal class Program
    {
        private static readonly StreamWriter writer = new StreamWriter(Console.OpenStandardOutput(1024*10), Encoding.ASCII, 1024*10);

        private static void Main(string[] args)
        {
            writer.WriteLine("1");
            writer.Flush();
        }
    }
}

using System;
using System.Linq;

namespace ConsoleApplication18
{
    internal class Program
    {
        public static void Main(string[] args)
        {

            Console.WriteLine(1);
        }
    }
}

#if DEBUG
using System.Reflection;
using System.Threading.Tasks;
#endif

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Numerics;
using System.Globalization;

#if DEBUG
using System.Diagnostics;
#endif

namespace avA
{
    class Program
    {
        static string _inputFilename = "input.txt";
        static string _outputFilename = "output.txt";
        static bool _useFileInput = false;
        const string _delim = "!";

        static void Main(string[] args)
        {
            StreamWriter file = null;
#if DEBUG
            var testNumber = 0;
            var timer = new Stopwatch();
            foreach (var test in GetTests())
            {

                timer.Start();

                var defaultColor = Console.ForegroundColor;
                Console.ForegroundColor = ConsoleColor.DarkYellow;
                Console.WriteLine($"<!-- TEST #{testNumber} -->");
                Console.ForegroundColor = defaultColor;
                Console.SetIn(test);

#else
            if (_useFileInput)
            {
                Console.SetIn(File.OpenText(_inputFilename));
                file = new StreamWriter(_outputFilename);
                Console.SetOut(file);
            }
#endif

            try
            {
                Solution();
            }
            finally
            {
                if (_useFileInput)
                {
                    file.Close();
                }
            }

#if DEBUG
                timer.Stop();

                Console.ForegroundColor = ConsoleColor.DarkYellow;
                Console.WriteLine($"<!-- TEST #{testNumber} FINISHED IN {timer.Elapsed.ToString(@"ss\:fff")}-->");
                Console.ForegroundColor = defaultColor;

                timer.Reset();
                testNumber++;
            }
#endif
        }

        static void Solution()
        {
            #region SOLUTION
            var n = ReadInt();
            Console.WriteLine(1);
            //var n = readInt();
            //var m = readInt();

            //var a = readIntArray();
            //var b = readIntArray();
            #endregion
        }

        static int ReadInt()
        {
            return int.Parse(Console.ReadLine());
        }

        static long ReadLong()
        {
            return long.Parse(Console.ReadLine());
        }

        static int[] ReadIntArray()
        {
            return Console.ReadLine().Split(' ').Where(i => !string.IsNullOrEmpty(i)).Select(i => int.Parse(i)).ToArray();
        }

        static long[] ReadLongArray()
        {
            return Console.ReadLine().Split(' ').Where(i => !string.IsNullOrEmpty(i)).Select(i => long.Parse(i)).ToArray();
        }

#if DEBUG
        static IEnumerable<TextReader> GetTests()
        {
            var tests = new List<string>();
            var resName = Assembly.GetCallingAssembly().GetManifestResourceNames()[0];
            using (var resource = new StreamReader(Assembly.GetCallingAssembly().GetManifestResourceStream(resName)))
            {
                while (true)
                {
                    var nextText = new StringBuilder();
                    var endOfFile = false;
                    while (true)
                    {
                        var line = resource.ReadLine();

                        endOfFile = line == null;
                        if (endOfFile)
                        {
                            break;
                        }

                        if (line.Equals(_delim, StringComparison.Ordinal))
                        {
                            break;
                        }

                        nextText.AppendLine(line);
                    }

                    yield return new StringReader(nextText.ToString());

                    if (endOfFile)
                    {
                        break;
                    }
                }
            }
        }
#endif
    }
}

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

namespace AlgoHelper
{
    public class Pair
    {
        public int X { get; set; }
        public int Y { get; set; }

        public Pair(int x, int y)
        {
            X = x;
            Y = y;
        }

        //public override bool Equals(object obj)
        //{
        //    var pair = obj as Pair;
        //    return X + Y == pair.X + pair.Y;
        //}

        //public override int GetHashCode()
        //{
        //    var hashCode = 1861411795;
        //    hashCode = hashCode * -1521134295 + X.GetHashCode();
        //    hashCode = hashCode * -1521134295 + Y.GetHashCode();
        //    return hashCode;
        //}

        public override string ToString()
        {
            return $"X = {X} Y = {Y}";
        }
    }

    class PairComparer : IComparer<Pair>
    {
        public int Compare(Pair x, Pair y)
        {
            return y.Y.CompareTo(x.Y);
        }
    }

    class Person
    {
        public int Age { get; set; }
        public string Name { get; set; }

    }

    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            Console.WriteLine(1);

         //   Console.ReadKey();
        }

        static int makingAnagrams(string s1, string s2)
        {
            int length = s1.Length + s2.Length;

            int[] freqA = frequency(s1);
            int[] freqB = frequency(s2);

            Console.WriteLine(string.Join("|",freqA));
            Console.WriteLine(string.Join("|", freqB));

            int count = 0;

            for (int i = 0; i < freqA.Length; i++)
            {
                if (freqA[i] != freqB[i]) count++;
            }

            return length - count;
        }
        public static int firstMissingPositive(int[] a)
        {
            int missing = 1;

            HashSet<int> set = new HashSet<int>();

            for (int i = 0; i < a.Length; i++)
            {
                if(a[i]>missing)
                {
                    set.Add(a[i]);
                }
                else if(a[i] == missing)
                {
                    if(!set.Contains(missing+1))
                    {
                        missing++;
                    }
                    else
                    {
                        missing = returnNewMax(++missing, set);
                    }
                }
            }

            return missing;
        }

        private static int returnNewMax(int n, HashSet<int> set)
        {
            while(set.Contains(n))
            {
                n++;
            }

            return n;
        }

        private static bool checkForAllZeroes(string s)
        {
            foreach(char c in s)
            {
                if (c != '0') return false;
            }

            return true;
        }

        private static int getHigherNumber(int n,int max)
        {
            int currentLength = maxLength(n);

            if (currentLength < max)
            {
                int diff = max - currentLength;
                int newNumber = n * (int)Math.Pow(10, diff);
                return newNumber;
            }

            return n;
        }

        private static int maxLength(int n)
        {
            return n.ToString().Length;
        }

        static int gemstones(string[] arr)
        {
            int[][] frequencies = new int[arr.Length][];

            for (int i = 0; i < frequencies.Length; i++)
            {
                frequencies[i] = frequency(arr[i]);
            }

            int count = 0;
            bool flag = true;

            for (int i = 0; i < frequencies[0].Length; i++) //26
            {
                for (int j = 0; j < frequencies.Length - 1; j++)
                {
                    if (frequencies[j][i] == 0 || frequencies[j + 1][i] == 0)
                    {
                        flag = false;
                        break;
                    }
                }

                if (flag) count++;
                flag = true;
            }

            return count;
        }

        private static bool isFunny(string s)
        {
            int[] diff = difference(s);

            return isPalindrome(diff);
        }

        private static int []  difference (string a)
        {
            int[] ans = new int[a.Length - 1];

            for (int i = 0; i < a.Length - 1; i++)
            {
                ans[i] = Math.Abs(a[i] - a[i + 1]);
            }

            return ans;
        }

        private static bool isPalindrome(int [] a)
        {
            for(int i=0;i<a.Length/2;i++)
            {
                if (a[i] != a[a.Length - 1 - i]) return false;
            }

            return true;
        }

        private static bool hasSubstring(string a, string b)
        {
            int[] freqA = frequency(a);
            int[] freqB = frequency(b);

            for (int i = 0; i < freqA.Length; i++)
            {
                if (freqA[i]!=0 && freqA[i] == freqB[i]) return true;
            }

            return false;
        }

        private static int LowerBound(int [] a, int target)
        {
            int lo = 0;
            int hi = a.Length - 1;
            int ans = -1;

            while(lo<=hi)
            {
                int med = hi - (hi - lo) / 2;

                if (target == a[med])
                {
                    ans = med;
                    hi = med - 1;
                }
                else if (target > a[med])
                {
                    lo = med + 1;
                }

                else hi = med - 1;
            }

            return ans;
        }

        private static string randomString(Random r)
        {
            int l = r.Next(1,10);

            string s = string.Empty;

            for (int i = 0; i < l; i++)
            {
                s += char.ConvertFromUtf32(r.Next(96, 122));
            }

            return s;
        }

        private static int [] prefixMax(int [] a)
        {
            int max = a[a.Length - 1];

            Stack<int> stack = new Stack<int>();

            stack.Push(a[a.Length - 1]);

            int[] b = new int[a.Length];

            b[a.Length - 1] = -1;

            bool found = false;

            for (int i = a.Length - 2; i >=0; i--)
            {
                while (stack.Count > 0)
                {
                    int temp = stack.Peek();

                    if (temp > a[i])
                    {
                        b[i] = temp;
                        found = true;
                        break;
                    }
                    else
                    {
                        stack.Pop();
                    }
                }

                stack.Push(a[i]);
                if (!found) b[i] = -1;
                found = false;
            }

            return b;
        }

        private static bool hasTheSameLetters(string a, string b)
        {

            int[] freqA = frequency(a);
            int[] freqB = frequency(b);

            for (int i = 0; i < freqA.Length; i++)
            {
                if (freqA[i] != 0 && freqB[i] != 0) return true;
            }

            return false;
        }

        private static int [] frequency(string s)
        {
            int[] a = new int[26];

            foreach(char c in s)
            {
                a[c - 'a']++;
            }

            return a;
        }

        private static bool checkTwoArrays(int [] a,int []b)
        {
            for (int i = 0; i < a.Length; i++)
            {
                if (a[i] != b[i]) return false;
            }

            return true;
        }

        private static long solution(long[] a, long h, long lo,long hi)
        {
            long med = hi - (hi - lo) / 2;
            while(lo<=hi)
            {
                med = hi - (hi - lo) / 2;
                long ans = solve(a, med);
                Console.WriteLine($"ans = {ans} lo = {lo} med = {med}");
                if (ans <= h) hi = med - 1;
                else if (ans > h) lo = med + 1;
            }

            return lo;
        }

        private static long solve(long [] a,long k)
        {
            long sum = 0;

            for (int i = 0; i < a.Length; i++)
            {
                if (a[i]<=k)
                {
                    sum++;
                }
                else
                {
                    sum += (a[i] / k) + 1;
                }
            }

            return sum;
        }

        public static bool LemonadeChange(int[] bills)
        {
            if (bills[0] > 5) return false;

            Dictionary<int, int> dict = new Dictionary<int, int>();

            int currentAmount = 5;

            dict[5] = 1;

            for (int i = 1; i < bills.Length; i++)
            {
                if (bills[i] > 5)
                {
                    int charge = bills[i] - 5;
                    if (currentAmount < charge) return false;

                    currentAmount+=5;
                }
                else
                {
                    currentAmount += bills[i];
                    dict[5]++;
                }
            }

            return false;
        }

        private static int solve(int n,int x,int y,int d)
        {
            if ((y-x) % d == 0) {
                return (y - x) / d;
            }

            if((x-y)%d==0)
            {
                return (x - y) / d;
            }

            if((y-1)%d==0)
            {
                int firstStep = 0;

                if ((x-1)%d==0)
                {
                    firstStep = (x - 1) / d;
                }
                else
                {
                    firstStep = (x - 1) / d + 1;
                }

                int secodnStep = (y - 1) / d;

                return firstStep + secodnStep;

            }

            return -1;
        }
        public static int max(int [] a, int i)
        {
            if (i == a.Length - 1) return a[a.Length - 1];
            else return Math.Max(a[i], max(a, i + 1));
        }

        public static int MaxArea(int[] a)
        {
            int l = 0;
            int r = a.Length - 1;

            int max = int.MinValue;

            while (l < r)
            {
                max = Math.Max(max, Math.Min(a[l], a[r]) * (r - l));

                if (a[l] < a[r]) l++;
                else r--;
            }

            return max;
        }

        private static bool isPrime(int n)
        {
            if (n < 2) return false;

            for(int i=2;i*i<=n;i++)
            {
                if (n % i == 0) return false;
            }

            return true;
        }

        private static void Swap(ref char a, ref char b)
        {
            char temp = a;
            a = b;
            b = temp;
        }
    }
}

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

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = Convert.ToInt32(Console.ReadLine());
            for (int i = x; i > 0; i--)
            {
                if (x == 1)
                {
                    Console.WriteLine(1);
                    break;
                }
                if (x % i != 0)
                {
                    Console.WriteLine(x - i);
                    break;
                }
            }

        }
    }
}

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

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = Convert.ToInt32(Console.ReadLine());
            for (int i = x; i > 0; i--)
            {
                if (x == 1)
                {
                    Console.WriteLine(1);
                    break;
                }
                if (x % i != 0)
                {
                    Console.WriteLine(x - i);
                    break;
                }
                if (x==2)
                Console.WriteLine(1);
            }

        }
    }
}

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

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = Convert.ToInt32(Console.ReadLine());
            for (int i = x-1; i >= 0; i--)
            {
                if (x == 1)
                {
                    Console.WriteLine(1);
                    break;
                }
                if(x==2)
                {
                    Console.WriteLine(1);
                    break;
                }
                if (x % i != 0)
                {
                    Console.WriteLine(x - i);
                    break;
                }
            }

        }
    }
}

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

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = Convert.ToInt32(Console.ReadLine());
            for (int i = x-1; i > 0; i--)
            {
                if (x == 1)
                {
                    Console.WriteLine(1);
                    break;
                }
                if (x % i != 0)
                {
                    Console.WriteLine(x - i);
                    break;
                }
            }

        }
    }
}

using System;
class Program
{
    static void Main()
    {
        Console.WriteLine(Math.Sign(int.Parse(Console.ReadLine())));
    }
}