
from __future__ import annotations


def 						UpperCAmelCase      (     a_						)		->     bool:







				"""simple docstring"""



				__A             =			str(a_						)
				return n == n[::-1]


def 						UpperCAmelCase      (     a_ = 1_0_0_0_0_0_0						)		->     List[str]:







				"""simple docstring"""



				__A             =			0

				for i in range(1		,       a_						):
								if is_palindrome(a_						) and is_palindrome(bin(a_						).split("b"						)[1]						):
												total += i
				return total


if __name__ == "__main__":
					print(solution(int(str(input().strip()))))


from __future__ import annotations


def 						UpperCAmelCase      (     a_ = 4						)		->     list[list[int]]:







				"""simple docstring"""



				__A             =			abs(a_						) or 4
				return [[1 + x + y * row_size for x in range(a_						)] for y in range(a_						)]


def 						UpperCAmelCase      (     a_						)		->     list[list[int]]:







				"""simple docstring"""



				return reverse_row(transpose(a_						)						)
				# OR.. transpose(reverse_column(matrix))


def 						UpperCAmelCase      (     a_						)		->     list[list[int]]:







				"""simple docstring"""



				return reverse_row(reverse_column(a_						)						)
				# OR.. reverse_column(reverse_row(matrix))


def 						UpperCAmelCase      (     a_						)		->     list[list[int]]:







				"""simple docstring"""



				return reverse_column(transpose(a_						)						)
				# OR.. transpose(reverse_row(matrix))


def 						UpperCAmelCase      (     a_						)		->     list[list[int]]:







				"""simple docstring"""



				__A             =			[list(a_						) for x in zip(*a_						)]
				return matrix


def 						UpperCAmelCase      (     a_						)		->     list[list[int]]:







				"""simple docstring"""



				__A             =			matrix[::-1]
				return matrix


def 						UpperCAmelCase      (     a_						)		->     list[list[int]]:







				"""simple docstring"""



				__A             =			[x[::-1] for x in matrix]
				return matrix


def 						UpperCAmelCase      (     a_						)		->     None:







				"""simple docstring"""



				for i in matrix:
								print(*a_						)


if __name__ == "__main__":
					SCREAMING_SNAKE_CASE							:Union[str, Any]										=    make_matrix()
					print('\norigin:\n')
					print_matrix(matrix)
					print('\nrotate 90 counterclockwise:\n')
					print_matrix(rotate_aa(matrix))

					SCREAMING_SNAKE_CASE							:Tuple										=    make_matrix()
					print('\norigin:\n')
					print_matrix(matrix)
					print('\nrotate 180:\n')
					print_matrix(rotate_aaa(matrix))

					SCREAMING_SNAKE_CASE							:Union[str, Any]										=    make_matrix()
					print('\norigin:\n')
					print_matrix(matrix)
					print('\nrotate 270 counterclockwise:\n')
					print_matrix(rotate_aaa(matrix))
