n = int(input()) print('Yes' if n == 0 or n == 4 or n == 10 else 'No')