if int(input()) in (1, 2, 4): print('NO') else: print('YES')