Skip to content

Instantly share code, notes, and snippets.

@TortoiseWrath
Created August 3, 2019 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TortoiseWrath/911dc341fc7b27efac7a7a1b5dd563b3 to your computer and use it in GitHub Desktop.
Save TortoiseWrath/911dc341fc7b27efac7a7a1b5dd563b3 to your computer and use it in GitHub Desktop.
tableCard = input()
cards = input().split()
for card in cards:
if card[0] == tableCard[0] or card[1] == tableCard[1]:
print("YES")
exit()
print("NO")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment