Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
264 B
28
Indexable
Never
N = int(input())
if not(99 < N < 1000):
    print("NO")
else: 
    m = int(input())
    if not(0 <= m <= 9):
        print("NO")
    else: 
        Nstr = [int(x) for x in str(N)]
        if m in Nstr:
            print("YES")
        else:
            print("NO")