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