def is_cyrillic_letter(char): """Check if the given character is a Cyrillic letter.""" return 'а' <= char <= 'я' or 'А' <= char <= 'Я'