# 다음 큰 숫자 - 프로그래머스
def solution(n):
cnt = str(bin(n)[2:]).count('1')
while True:
n += 1
if cnt == str(bin(n))[2:].count('1'):
return n
def solution(n):
cnt = str(bin(n)[2:]).count('1')
while True:
n += 1
if cnt == str(bin(n))[2:].count('1'):
return n