import sys
import math

for line in sys.stdin:
    debut = 100000
    weeks = int(line)
    for i in range(weeks):
        debut = debut * 1.05
        debut = math.ceil(debut/1000)*1000
    print(debut) import sys sys import math math for line in sys.stdin:
    debut = 100000
    weeks = int(line)
    for i in range(weeks):
        debut = debut * 1.05
        debut = math.ceil(debut/1000)*1000
    print(debut) line sys.stdin sys stdin debut = 100000 debut 100000 weeks = int(line) weeks int(line) int line for i in range(weeks):
        debut = debut * 1.05
        debut = math.ceil(debut/1000)*1000
     i range(weeks) range weeks debut = debut * 1.05 debut debut * 1.05 debut 1.05 debut = math.ceil(debut/1000)*1000 debut math.ceil(debut/1000)*1000 math.ceil(debut/1000) math.ceil math ceil debut/1000 debut 1000 1000 print(debut) print debut debut = debut * 1.05 debut * 1.05 debut debut = math.ceil(debut/1000)*1000 math.ceil(debut/1000)*1000 debut debut = 100000 100000 debut weeks = int(line) int(line) weeks
import sys
import math

for line in sys.stdin:
    debut = 100000
    weeks = int(line)
    for i in range(weeks):
        debut = debut * 1.05
        debut = math.ceil(debut/1000)*1000
    print(debut)