class Solution:
def NumberOf1Between1AndN_Solution(self, n):
a=0
for i in range(0,n+1):
str1=str(i)
a+=str1.count("1")
return a
class Solution:
def NumberOf1Between1AndN_Solution(self, n):
a=0
for i in range(0,n+1):
str1=str(i)
a+=str1.count("1")
return a