[브루트 포스] 영화감독 숌
2021. 5. 30. 23:16ㆍ백준
n = int(input())
res = []
count = 0
target = '666'
while True:
if target.find('666') != -1:
count = count + 1
if count == n:
print(target)
break
target = str(int(target) + 1)