For this Question: Given a number N, You have to find if the binary representation of N can be rearranged to form a palindrome.Input contains a single integer N.

Constraints:-
1 <<= N <= 1000000000Print "YES" if the binary representation of N can be rearranged to form a palindrome, else print "NO".Sample Input:- 
6

Sample Output:-
YES

Explanation:-
The binary representation of 6 = 110 which can be rearranged as 101

Sample Input:-
14

Sample Output:-
NO, I have written this Solution Code: n=int(input())
s=bin(n)
r=s.replace('0b','')
ans=''.join(sorted(r))
if len(r)%2!=0:
	print("YES")
else:
	print("NO"), In this Programming Language: Python, Now tell me if this Code is compilable or not?