print(['No', 'Yes'][int(input().strip()) in [0, 4, 10]])