number = input()
previous_digit = ""
found = False
for digit in number:
if not found and previous_digit == digit:
print("да")
found = True
else:
previous_digit = digit
if not found:
print("нет")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
number = input()
previous_digit = ""
found = False
for digit in number:
if not found and previous_digit == digit:
print("да")
found = True
else:
previous_digit = digit
if not found:
print("нет")