**python 3, 38** print(1==bin(int(input())).count('1')) **python, 33** However, the code doesn't work in every version. print(1==bin(input()).count('1'))