while 1:
    try:
        s,l = set(input()), set(input())
        if s & l == s: print('true')
        else: print('false')
    except:
        break