N = int(input()) print('Yes' if N in [0, 4, 10] else 'No')