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

namespace yukicorder537
{
	class Program
	{
		static void Main(string[] args)
		{
			// 入力
			Int64 N = long.Parse(Console.ReadLine());

			// 割れる組み合わせの確認
			Int64 ans = divPattern(N);

			Console.WriteLine(ans);
			Console.ReadKey();
		}

		static Int64 divPattern(Int64 N)
		{
			var max = Math.Sqrt(N);

			List<string> ans = new List<string>();
			ans.Add(string.Format("{0}{1}" , 1 , N));
			if (ans.Contains(string.Format("{1}{0}" , 1 , N)) == false){
				ans.Add(string.Format("{1}{0}" , 1 , N));
			}

			for (Int64 i = 2; i <= max; i++)
			{
				if (N % i == 0)
				{
					string x = i + (N / i).ToString();
					if (ans.Contains(x) == false)
					{
						ans.Add(x);
					}
				}
			}
			return ans.Count;
		}
	}
}