Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT n = 4 ; NEW_LINE base = fib ( n , mod ) % mod ; NEW_LINE expo = fib ( n , mod - 1 ) % ( mod - 1 ) ; NEW_LINE result = modularexpo ( base , expo , mod ) % mod ; NEW_LINE print ( result ) ; NEW_LINE DEDENT