




import math

def 			a   (_lowerCAmelCase  ,    _lowerCAmelCase     ):

							if initial_intensity < 0:
														raise ValueError('''The value of intensity cannot be negative'''     )
														# handling of negative values of initial intensity
							if angle < 0 or angle > 3_6_0:
														raise ValueError('''In Malus Law, the angle is in the range 0-360 degrees'''     )
														# handling of values out of allowed range
							return initial_intensity * (math.cos(math.radians(_lowerCAmelCase     )     ) ** 2)


if __name__ == "__main__":
			import doctest

			doctest.testmod(name="""malus_law""")








from typing import Any

def 			a   (_lowerCAmelCase     ):
							if not input_list:
														return []
							SCREAMING_SNAKE_CASE_   	=    [input_list.count(_lowerCAmelCase     ) for value in input_list]
							SCREAMING_SNAKE_CASE_   	=    max(_lowerCAmelCase     )  # Gets the maximum count in the input list.
							# Gets values of modes
							return sorted({input_list[i] for i, value in enumerate(_lowerCAmelCase     ) if value == y}     )


if __name__ == "__main__":
			import doctest

			doctest.testmod()


