Skip to content

Instantly share code, notes, and snippets.

@deeev-sb
Created April 16, 2021 15:19
Show Gist options
  • Save deeev-sb/1de69bee69c446141f42cae1d3bbd90a to your computer and use it in GitHub Desktop.
Save deeev-sb/1de69bee69c446141f42cae1d3bbd90a to your computer and use it in GitHub Desktop.
L, R = input().split()
Llen, Rlen = len(L), len(R)
cnt = 0
if Llen != Rlen :
print(cnt)
else :
for i in range(Llen) :
if L[i] != R[i] :
break
else :
if L[i] == '8' :
cnt += 1
print(cnt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment