import sys

n = int(sys.stdin.readline())
borrowing = 100000

for i in range(0, n):
    borrowing *= 1.05
    borrowing = int((borrowing+999) / 1000) * 1000

print(borrowing) import sys sys n = int(sys.stdin.readline()) n int(sys.stdin.readline()) int sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline borrowing = 100000 borrowing 100000 for i in range(0, n):
    borrowing *= 1.05
    borrowing = int((borrowing+999) / 1000) * 1000 i range(0, n) range 0 n borrowing *= 1.05 borrowing 1.05 borrowing = int((borrowing+999) / 1000) * 1000 borrowing int((borrowing+999) / 1000) * 1000 int((borrowing+999) / 1000) int (borrowing+999) / 1000 borrowing+999 borrowing 999 1000 1000 print(borrowing) print borrowing borrowing *= 1.05 1.05 borrowing n = int(sys.stdin.readline()) int(sys.stdin.readline()) n borrowing = int((borrowing+999) / 1000) * 1000 int((borrowing+999) / 1000) * 1000 borrowing borrowing = 100000 100000 borrowing
import sys

n = int(sys.stdin.readline())
borrowing = 100000

for i in range(0, n):
    borrowing *= 1.05
    borrowing = int((borrowing+999) / 1000) * 1000

print(borrowing)