





import requests

try:
      from django.contrib.auth import authenticate, login
      from django.shortcuts import redirect, render
except ImportError:
      lowerCAmelCase_        =			lowerCAmelCase_        =			lowerCAmelCase_        =			lowerCAmelCase_        =			print


def 			lowerCamelCase_		(					lowerCAmelCase:		Optional[int] )->						List[Any]:
  # Enter your recaptcha secret key here
  _snake_case      : Optional[int]														=		'secretKey'
  _snake_case      : str														=		'https://www.google.com/recaptcha/api/siteverify'

  # when method is not POST, direct user to login page
  if request.method != "POST":
    return render(lowerCAmelCase			,							'login.html' )

  # from the frontend, get username, password, and client_key
  _snake_case      : Any														=		request.POST.get('username' )
  _snake_case      : Dict														=		request.POST.get('password' )
  _snake_case      : List[Any]														=		request.POST.get('g-recaptcha-response' )

  # post recaptcha response to Google's recaptcha api
  _snake_case      : Any														=		requests.post(lowerCAmelCase			,							data={'secret': secret_key, 'response': client_key} )
  # if the recaptcha api verified our keys
  if response.json().get('success'			,							lowerCAmelCase ):
    # authenticate the user
    _snake_case      : Dict														=		authenticate(lowerCAmelCase			,							username=lowerCAmelCase			,							password=lowerCAmelCase )
    if user_in_database:
      login(lowerCAmelCase			,							lowerCAmelCase )
      return redirect('/your-webpage' )
  return render(lowerCAmelCase			,							'login.html' )







'''simple docstring'''
from __future__ import annotations


def       a__    (  _SCREAMING_SNAKE_CASE					:    int							)			-> set[int]:


	"""simple docstring"""





	UpperCAmelCase_			:	Dict      =   {1}
	UpperCAmelCase_			:	int      =   [1]
	for _ in range(2     ,							depth + 1							):
		UpperCAmelCase_			:	Dict      =   [*previous_coefficients, 0]
		UpperCAmelCase_			:	Tuple      =   [0, *previous_coefficients]
		UpperCAmelCase_			:	Dict      =   []
		for x, y in zip(_SCREAMING_SNAKE_CASE     ,							_SCREAMING_SNAKE_CASE							):
			coefficients.add(x + y							)
			previous_coefficients.append(x + y							)
	return coefficients


def       a__    (  _SCREAMING_SNAKE_CASE					:    set[int]							)			-> set[int]:


	"""simple docstring"""





	UpperCAmelCase_			:	List[Any]      =   set()
	for number in unique_coefficients:
		UpperCAmelCase_			:	Tuple      =   2
		UpperCAmelCase_			:	Tuple      =   number
		while divisor**2 <= copy_number:
			UpperCAmelCase_			:	List[Any]      =   0
			while copy_number % divisor == 0:
				copy_number //= divisor
				multiplicity += 1
			if multiplicity >= 2:
				non_squarefrees.add(_SCREAMING_SNAKE_CASE							)
				break
			divisor += 1

	return unique_coefficients.difference(_SCREAMING_SNAKE_CASE							)


def       a__    (  _SCREAMING_SNAKE_CASE					:    int = 51							)			-> int:


	"""simple docstring"""





	UpperCAmelCase_			:	Optional[Any]      =   get_pascal_triangle_unique_coefficients(_SCREAMING_SNAKE_CASE							)
	UpperCAmelCase_			:	Union[str, Any]      =   get_squarefrees(_SCREAMING_SNAKE_CASE							)
	return sum(_SCREAMING_SNAKE_CASE							)


if __name__ == "__main__":
					print(f"""{solution() = }""")




