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