#趣味题干# #一行题解#

print("YES" if input().isalpha() else "NO")
// 就有点想测试一下
// 是的, 测试用例并不严谨, 下面这个写法也能通过
print("YES" if ord(input()) in range(65, 123) else "NO")