
"""simple docstring"""
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_							:    List[Any]         =						"""sshleifer/bart-tiny-random"""
lowercase_							:    int         =						"""patrickvonplaten/t5-tiny-random"""
@require_torch
class       UpperCamelCase   (				unittest.TestCase	):
     @cached_property
     def 					__SCREAMING_SNAKE_CASE				(  self					):




       """simple docstring"""


       return AutoConfig.from_pretrained(_a					)
     def 					__SCREAMING_SNAKE_CASE				(  self					):




       """simple docstring"""


       _SCREAMING_SNAKE_CASE     ,		*_SCREAMING_SNAKE_CASE :					str				     =			create_student_by_copying_alternating_layers(_a	,  tempfile.mkdtemp()	,  e=1	,  d=1					)
       self.assertEqual(student.config.num_hidden_layers	,  1					)
     def 					__SCREAMING_SNAKE_CASE				(  self					):




       """simple docstring"""


       _SCREAMING_SNAKE_CASE     ,		*_SCREAMING_SNAKE_CASE :					str				     =			create_student_by_copying_alternating_layers(_a	,  tempfile.mkdtemp()	,  e=1	,  d=_a					)
     def 					__SCREAMING_SNAKE_CASE				(  self					):




       """simple docstring"""


       _SCREAMING_SNAKE_CASE     ,		*_SCREAMING_SNAKE_CASE :					Any				     =			create_student_by_copying_alternating_layers(_a	,  tempfile.mkdtemp()	,  e=1	,  d=_a					)
       self.assertEqual(student.config.encoder_layers	,  1					)
       self.assertEqual(student.config.decoder_layers	,  self.teacher_config.encoder_layers					)
     def 					__SCREAMING_SNAKE_CASE				(  self					):




       """simple docstring"""


       _SCREAMING_SNAKE_CASE     ,		*_SCREAMING_SNAKE_CASE :					str				     =			create_student_by_copying_alternating_layers(_a	,  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					):




       """simple docstring"""


       with self.assertRaises(_a					):
         create_student_by_copying_alternating_layers(_a	,  tempfile.mkdtemp()	,  e=_a	,  d=_a					)









"""simple docstring"""




def        a__					(							snake_case__ = 10_00							)		->   int:
			lowerCamelCase ,  lowerCamelCase      =   1, 1
			lowerCamelCase      =   2
			while True:
						lowerCamelCase      =   0
						lowerCamelCase      =   fa + fa
						lowerCamelCase ,  lowerCamelCase      =   fa, f
						index += 1
						for _ in str(snake_case__							):
									i += 1
						if i == n:
									break
			return index


if __name__ == "__main__":
					print(solution(int(str(input()).strip())))



