S = int(input()) if S // 100 in [4, 5]: print('Yes') else: print('No')