题解 | #挑7#
挑7
https://www.nowcoder.com/practice/ba241b85371c409ea01ac0aa1a8d957b
n = int(input())
ans = 0
for i in range(1, n+1):
if i % 7 == 0:
ans+=1
continue
if "7" in str(i):
ans+=1
print(ans)
ans = 0
for i in range(1, n+1):
if i % 7 == 0:
ans+=1
continue
if "7" in str(i):
ans+=1
print(ans)