N = int(input()) l = [] x = 1 while x=l[i]: N-=l[i] cnt+=1 print('YES'if cnt%2==0 else 'NO')