Write a program to obtain a number $(N)$ from the user and display whether the number is a one digit number, 2 digit number, 3 digit number or more than 3 digit number

-----Input:-----
- First line will contain the number $N$,

-----Output:-----
Print "1" if N is a 1 digit number.
Print "2" if N is a 2 digit number.
Print "3" if N is a 3 digit number.
Print "More than 3 digits" if N has more than 3 digits.

-----Constraints-----
- $0 \leq N \leq 1000000$

-----Sample Input:-----
9

-----Sample Output:-----
1

Difficulty: EASY

Solutions:
N = input()
if len(N) == 1:
	print('1')
elif len(N) == 2:
	print('2')
elif len(N) == 3:
	print('3')
else:
	print('More than 3 digits')


num = input()
if len(num) <= 3:
	print(len(num))
else:
	print('More than 3 digits')


n = int(input())
if n <= 9:
	print(1)
elif n <= 99:
	print(2)
elif n <= 999:
	print(3)
else:
	print('More than 3 digits')


n = int(input())
c = 0
while n > 0:
	c += 1
	n //= 10
if c == 1:
	print(1)
elif c == 2:
	print(2)
elif c == 3:
	print(3)
elif c > 3:
	print('More than 3 digits')


n = int(input())
sn = str(n)
if len(sn) == 1:
	print(1)
elif len(sn) == 2:
	print(2)
elif len(sn) == 3:
	print(3)
elif len(sn) > 3:
	print('More than 3 digits')


digit = int(input())
print('More than 3 digits' if len(str(digit)) > 3 else len(str(digit)))


n = input()
k = len(n)
if k <= 3:
	print(k)
else:
	print('More than 3 digits')


n = len(input())
if n < 4:
	print(n)
else:
	print('More than 3 digits')


n = input()
b = len(n)
if b > 3:
	print('More than 3 digits')
else:
	print(b)


n = int(input())
if len(str(n)) <= 3:
	print(len(str(n)))
else:
	print('More than 3 digits')


n = int(input())
if n < 10:
	print('1')
elif 10 <= n <= 99:
	print('2')
elif 100 <= n <= 999:
	print('3')
else:
	print('More than 3 digits')


s = input()
if len(s) == 1:
	print(1)
if len(s) == 2:
	print(2)
if len(s) == 3:
	print(3)
elif len(s) > 3:
	print('More than 3 digits')


n = str(input())
if len(n) == 1:
	print('1')
elif len(n) == 2:
	print('2')
elif len(n) == 3:
	print('3')
else:
	print('More than 3 digits')


n = int(input())
if n < 10:
	print('1')
elif n >= 10 and n < 100:
	print('2')
elif n >= 100 and n < 1000:
	print('3')
else:
	print('More than 3 digits')


N = int(input())
count = 0
while N != 0:
	count += 1
	N //= 10
if count <= 3:
	print(count)
else:
	print('More than 3 digits')


n = int(input())
ans = 0
while n != 0:
	n = n // 10
	ans += 1
if ans <= 3:
	print(ans)
else:
	print('More than 3 digits')


N = input()
if len(N) > 3:
	print('More than 3 digits')
else:
	print(len(N))


a = int(input())
ct = 0
for i in range(3):
	if int(a / 10) != 0:
		ct += 1
		a = int(a / 10)
if ct == 0:
	print('1')
elif ct == 1:
	print('2')
elif ct == 2:
	print('3')
else:
	print('More than 3 digits')


N = int(input())
if N < 10:
	print(1)
elif N < 100:
	print(2)
elif N < 1000:
	print(3)
else:
	print('More than 3 digits')


a = input()
print(len(a) if len(a) <= 3 else 'More than 3 digits')


a = int(input())
if a // 10 == 0:
	print(1)
elif a // 100 == 0:
	print(2)
elif a // 1000 == 0:
	print(3)
else:
	print('More than 3 digits')


n = int(input())
c = 0
while n > 0:
	r = n % 10
	c = c + 1
	n = n // 10
if c < 4:
	print(c)
else:
	print('More than 3 digits')


x = input()
if len(x) <= 3:
	print(len(x))
else:
	print('More than 3 digits')


t = int(input())
a = 0
while t != 0:
	t = int(t / 10)
	a += 1
if a == 1:
	print('1')
elif a == 2:
	print('2')
elif a == 3:
	print('3')
else:
	print('More than 3 digits')


x = input()
y = len(x)
if y == 1:
	print('1')
elif y == 2:
	print('2')
elif y == 3:
	print('3')
elif y > 3:
	print('More than 3 digits')


N = int(input())
count = 0
while N != 0:
	digit = N % 10
	count += 1
	N = N // 10
if count == 1:
	print(1)
elif count == 2:
	print(2)
elif count == 3:
	print(3)
else:
	print('More than 3 digits')


n = str(input())
l = []
for i in range(len(n)):
	l.append(n[i])
if len(l) == 1:
	print('1')
elif len(l) == 2:
	print('2')
elif len(l) == 3:
	print('3')
else:
	print('More than 3 digits')


T = input()
n1 = len(T)
if n1 <= 3:
	print(n1)
else:
	print('More than 3 digits')


n = int(input())
s = str(n)
l = list(s)
x = 0
if len(l) > 3:
	print('More than 3 digits')
else:
	for i in l:
		x += 1
	print(x)


import math
n = int(input())
a = math.floor(n / 10)
if a < 1:
	print('1')
elif a >= 1 and a < 10:
	print('2')
elif a >= 10 and a < 100:
	print('3')
else:
	print('More than 3 digits')


def __starting_point():
	s = int(input())
	if s <= 9:
		print(1)
	elif s <= 99:
		print(2)
	elif s <= 999:
		print(3)
	else:
		print('More than 3 digits')
__starting_point()


x = input()
if x[0] == '0':
	print(int(len(x)) - 1)
elif len(x) > 3:
	print('More than 3 digits')
else:
	print(len(x))


x = list(map(int, input()))
if len(x) <= 3:
	print(len(x))
else:
	print('More than 3 digits')


t = len(input())
if t > 3:
	print('More than 3 digits')
else:
	print(str(t))


n = int(input())
s = str(n)
a = len(s)
if a == 1:
	print('1')
elif a == 2:
	print('2')
elif a == 3:
	print('3')
else:
	print('More than 3 digits')


N = int(input())
N_str = str(N)
size = len(N_str)
if size < 4:
	print(size)
else:
	print('More than 3 digits')


N = int(input())
len_N = len(str(N))
print(len_N) if len_N <= 3 else print('More than 3 digits')


N = int(input())
c = 0
while N > 0:
	c = c + 1
	N = N // 10
if c <= 3:
	print(c)
elif c > 3:
	print('More than 3 digits')


try:
	n = int(input())
	i = 0
	while n >= 10 ** i:
		i = i + 1
	if i <= 3:
		print(i)
	else:
		print('More than 3 digits')
except:
	pass


num = int(input())
num_digits = len(str(num))
if num_digits == 1:
	print('1')
elif num_digits == 2:
	print('2')
elif num_digits == 3:
	print('3')
else:
	print('More than 3 digits')


x = int(input())
x = str(x)
if len(x) > 3:
	print('More than 3 digits')
else:
	print(len(x))


n = input()
lent = len(n)
if lent <= 3:
	print(lent)
else:
	print('More than 3 digits')