# 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
#
#
# @param n int整型
# @return bool布尔型
#
class Solution:
def poweroftwo(self , n: int) -> bool:
# write code here
for i in range(1000):
a = 2**i
if 2**i == n:
return True
return False