#include using namespace std; typedef long long ll; #define loop(i,a,b) for(i=a;i=b;i--) #define vi vector #define vl vector #define vii vector< vector > #define vll vector< vector > #define vs vector #define pii pair #define psi pair #define pis pair #define pss pair const int inf=1000000001; const ll INF=1e16; #define MOD 1000000007 #define mod 1000000009 #define pi 3.14159265358979323846 #define Sp(p) cout<>n; ll cnt=0; loop(i,1,(int)sqrt(n)+1){ if(n%i == 0){ ll a=i; ll b=n/i; if( (a + b * pow(10,keta(a))) == (b + a * pow(10,keta(b)))){ cnt++; }else{ cnt+=2; } } } cout<