mirea-projects/First term/Algorithms/2-2/1.py
2024-09-24 02:22:33 +03:00

13 lines
174 B
Python
Executable File

def main() -> None:
n = int(input())
index = 0
while 2 ** index < n:
index += 1
print(int(2 ** index == n))
if __name__ == "__main__":
main()