mirea-projects/First term/Algorithms/2-2/1.py

13 lines
174 B
Python
Raw Permalink Normal View History

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