def _lowerCamelCase  (		snake_case = 10     , snake_case = 22  ):
							_lowerCAmelCase							=							range(1     , snake_case  )
							_lowerCAmelCase							=							range(1     , snake_case  )
							return sum(
							    1 for power in powers for base in bases if len(str(base**power  )  ) == power  )


if __name__ == "__main__":
				print(f"""{solution(1_0, 2_2) = }""")







import tempfile
import unittest

from make_student import create_student_by_copying_alternating_layers

from transformers import AutoConfig
from transformers.file_utils import cached_property
from transformers.testing_utils import require_torch


_lowercase:	str       			=		'''sshleifer/bart-tiny-random'''
_lowercase:	Union[str, Any]       			=		'''patrickvonplaten/t5-tiny-random'''



@require_torch
class        lowerCamelCase__				(   unittest.TestCase				):





			@cached_property
			def   SCREAMING_SNAKE_CASE__     (       self	:	Tuple						):
										return AutoConfig.from_pretrained(lowercase__						)





			def   SCREAMING_SNAKE_CASE__     (       self	:	int						):
										_lowerCAmelCase			,		*_lowerCAmelCase							=							create_student_by_copying_alternating_layers(lowercase__  ,  tempfile.mkdtemp()  ,  e=1  ,  d=1						)
										self.assertEqual(student.config.num_hidden_layers  ,  1						)





			def   SCREAMING_SNAKE_CASE__     (       self	:	Dict						):
										_lowerCAmelCase			,		*_lowerCAmelCase							=							create_student_by_copying_alternating_layers(lowercase__  ,  tempfile.mkdtemp()  ,  e=1  ,  d=lowercase__						)





			def   SCREAMING_SNAKE_CASE__     (       self	:	Union[str, Any]						):
										_lowerCAmelCase			,		*_lowerCAmelCase							=							create_student_by_copying_alternating_layers(lowercase__  ,  tempfile.mkdtemp()  ,  e=1  ,  d=lowercase__						)
										self.assertEqual(student.config.encoder_layers  ,  1						)
										self.assertEqual(student.config.decoder_layers  ,  self.teacher_config.encoder_layers						)





			def   SCREAMING_SNAKE_CASE__     (       self	:	str						):
										_lowerCAmelCase			,		*_lowerCAmelCase							=							create_student_by_copying_alternating_layers(lowercase__  ,  tempfile.mkdtemp()  ,  e=1  ,  d=1						)
										self.assertEqual(student.config.encoder_layers  ,  1						)
										self.assertEqual(student.config.decoder_layers  ,  1						)





			def   SCREAMING_SNAKE_CASE__     (       self	:	List[str]						):
										with self.assertRaises(lowercase__						):
																	create_student_by_copying_alternating_layers(lowercase__  ,  tempfile.mkdtemp()  ,  e=lowercase__  ,  d=lowercase__						)






