



'''simple docstring'''

def 						__UpperCamelCase				(							_lowercase,				_lowercase					) ->			int:
	return int((input_a, input_a).count(1					) != 0					)







def 						__UpperCamelCase				(							) ->			None:
	assert or_gate(0,				0					) == 0
	assert or_gate(0,				1					) == 1
	assert or_gate(1,				0					) == 1
	assert or_gate(1,				1					) == 1


if __name__ == "__main__":
		print(or_gate(0, 1))
		print(or_gate(1, 0))
		print(or_gate(0, 0))
		print(or_gate(1, 1))





'''simple docstring'''

from __future__ import annotations

import requests







def 						__UpperCamelCase				(							_lowercase					) ->			dict:
	_lowercase					:       Optional[int]       =		f'''https://hacker-news.firebaseio.com/v0/item/{story_id}.json?print=pretty'''
	return requests.get(_lowercase					).json()







def 						__UpperCamelCase				(							_lowercase = 10					) ->			list[dict]:
	_lowercase					:       Union[str, Any]       =		'https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty'
	_lowercase					:       Optional[Any]       =		requests.get(_lowercase					).json()[:max_stories]
	return [get_hackernews_story(_lowercase					) for story_id in story_ids]







def 						__UpperCamelCase				(							_lowercase = 10					) ->			str:
	_lowercase					:       Tuple       =		hackernews_top_stories(_lowercase					)
	return "\n".join('* [{title}]({url})'.format(**_lowercase					) for story in stories					)


if __name__ == "__main__":
		print(hackernews_top_stories_as_markdown())
