new_num = ''
for num in range(1, 26):
tmp = num
while tmp > 0:
new_num = str(tmp % 4) + new_num
tmp //= 4
if (new_num.endswith('11')):
print(num)
new_num = ''
<input type="text" name="text" required>
<button type="button" id="next" disabled>Продолжить</button>
const checkLength = function(evt) {
if (textField.value.length > 1) {
button.removeAttribute('disabled')
}
}
const textField= document.querySelector('input[name="text"]')
const button = document.querySelector('button')
textField.addEventListener('keyup', checkLength)