





def      a__			(       lowercase__	):






   '''simple docstring'''






   UpperCAmelCase_           =int(lowercase__	)
   if n_element < 1:
      UpperCAmelCase_           =ValueError("a should be a positive number"	)
      raise my_error

   UpperCAmelCase_           =[1]
   UpperCAmelCase_    ,							UpperCAmelCase_    ,							UpperCAmelCase_           =(0, 0, 0)
   UpperCAmelCase_           =1
   while index < n_element:
      while hamming_list[i] * 2 <= hamming_list[-1]:
         i += 1
      while hamming_list[j] * 3 <= hamming_list[-1]:
         j += 1
      while hamming_list[k] * 5 <= hamming_list[-1]:
         k += 1
      hamming_list.append(
          min(hamming_list[i] * 2	,     hamming_list[j] * 3	,     hamming_list[k] * 5	)	)
      index += 1
   return hamming_list


if __name__ == "__main__":
     __lowercase	: Tuple       =input("""Enter the last number (nth term) of the Hamming Number Series: """)
     print("""Formula of Hamming Number Series => 2^i * 3^j * 5^k""")
     __lowercase	: Union[str, Any]       =hamming(int(n))
     print("""-----------------------------------------------------""")
     print(f"""The list with nth numbers is: {hamming_numbers}""")
     print("""-----------------------------------------------------""")






'''simple docstring'''

from cva import destroyAllWindows, imread, imshow, waitKey


def        UpperCAmelCase_ (  lowerCamelCase_			):







 """simple docstring"""


 lowerCAmelCase__		,     lowerCAmelCase__     :   Tuple     		=	img.shape[0], img.shape[1]

 # converting each pixel's color to its negative
 for i in range(lowerCamelCase_			):
  for j in range(lowerCamelCase_			):
   lowerCAmelCase__     :   Optional[int]     		=	[2_5_5, 2_5_5, 2_5_5] - img[i][j]

 return img


if __name__ == "__main__":
     # read original image
     snake_case									=    imread("""image_data/lena.jpg""", 1)

     # convert to its negative
     snake_case									=    convert_to_negative(img)

     # show result image
     imshow("""negative of original image""", img)
     waitKey(0)
     destroyAllWindows()





