#---------------------------- counting the total number of digit ----------------------------
num = int(input("Enter the number :"))
count =0
while(num>0):
num=num//10
count += 1
print(count)
#---------------------------- counting the key in digit ------------------------------------
num = int(input("Enter the number :"))
count =0
key= int(input("Enter the key : "))
while(num>0):
ld = num%10
num=num//10
if(key == ld):
count += 1
print(count)
#---------------------------- multiply all digits in number ----------------------------------
num = int(input("Enter the number :"))
mul=1
while(num>0):
ld =num%10
num=num//10
mul=ld*mul
print(mul)
#---------------------------- find prime digits in number ----------------------------------
num = int(input("Enter the number :"))
rev =0
count =0
while(num>0):
ld =num%10
num=num//10
rev = rev*10+ld
while(rev>0):
ld =rev%10
rev=rev//10
if(ld == 2 or ld == 3 or ld == 5 or ld == 7 ):
print(ld,end =' ')
#---------------------------- checking palindrome by digits --------------------------------
num = int(input("Enter the number :"))
rev =0
val= num
while(num>0):
ld =num%10
num=num//10
rev = rev*10+ld
if rev== val:
print("Palindrome Number")
else:
print("Not a Palindrome Number")
#---------------------------- checking adam number by digits --------------------------------
num = int(input("Enter the number :"))
rev =0
final =0
val= num
sq_n=num*num
while(num>0):
ld =num%10
num=num//10
rev = rev*10+ld
sqr =rev * rev
while(sqr>0):
ld =sqr%10
sqr=sqr//10
final = final*10+ld
if(final == sq_n):
print("Adam Number")
else:
print("Not a adam number")