Created
April 16, 2021 15:19
-
-
Save deeev-sb/1de69bee69c446141f42cae1d3bbd90a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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