




import requests

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




def       SCREAMING_SNAKE_CASE			( __UpperCamelCase    :		str   )						->							Union[str, Any]:
    # Enter your recaptcha secret key here
    UpperCAmelCase_											=  "secretKey"
    UpperCAmelCase_											=  "https://www.google.com/recaptcha/api/siteverify"

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

    # from the frontend, get username, password, and client_key
    UpperCAmelCase_											=  request.POST.get('''username'''   )
    UpperCAmelCase_											=  request.POST.get('''password'''   )
    UpperCAmelCase_											=  request.POST.get('''g-recaptcha-response'''   )

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











import itertools




def       SCREAMING_SNAKE_CASE			( __UpperCamelCase    :		Tuple   )						->							List[Any]:
    return (
        int(''''''.join(combination[0:2]   )   ) * int(''''''.join(combination[2:5]   )   )
        == int(''''''.join(combination[5:9]   )   )
    ) or (
        int(''''''.join(combination[0]   )   ) * int(''''''.join(combination[1:5]   )   )
        == int(''''''.join(combination[5:9]   )   )
    )




def       SCREAMING_SNAKE_CASE			( )						->							Optional[Any]:
    return sum(
        {
            int(''''''.join(pandigital[5:9]   )   )
            for pandigital in itertools.permutations('''123456789'''   )
            if is_combination_valid(__UpperCamelCase   )
        }   )


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





