import sys

for line in sys.stdin:
    n = int(line)
    debt = 100000
    for k in range(n):
        debt *= 1.05
        if debt / 1000 - int(debt) / 1000 > 0:
            debt = (int(debt) / 1000 + 1) * 1000
        else:
            debt = int(debt)
    print debt import sys sys for line in sys.stdin:
    n = int(line)
    debt = 100000
    for k in range(n):
        debt *= 1.05
        if debt / 1000 - int(debt) / 1000 > 0:
            debt = (int(debt) / 1000 + 1) * 1000
        else:
            debt = int(debt)
    print debt line sys.stdin sys stdin n = int(line) n int(line) int line debt = 100000 debt 100000 for k in range(n):
        debt *= 1.05
        if debt / 1000 - int(debt) / 1000 > 0:
            debt = (int(debt) / 1000 + 1) * 1000
        else:
            debt = int(debt)
     k range(n) range n debt *= 1.05 debt 1.05 if debt / 1000 - int(debt) / 1000 > 0:
            debt = (int(debt) / 1000 + 1) * 1000
        else:
            debt = int(debt)
     debt / 1000 - int(debt) / 1000 > 0 debt / 1000 - int(debt) / 1000 debt / 1000 debt 1000 int(debt) / 1000 int(debt) int debt 1000 0 debt = (int(debt) / 1000 + 1) * 1000 debt (int(debt) / 1000 + 1) * 1000 int(debt) / 1000 + 1 int(debt) / 1000 int(debt) int debt 1000 1 1000 debt = int(debt) debt int(debt) int debt print debt = int(debt) int(debt) debt debt = 100000 100000 debt debt *= 1.05 1.05 debt n = int(line) int(line) n debt = (int(debt) / 1000 + 1) * 1000 (int(debt) / 1000 + 1) * 1000 debt
import sys

for line in sys.stdin:
    n = int(line)
    debt = 100000
    for k in range(n):
        debt *= 1.05
        if debt / 1000 - int(debt) / 1000 > 0:
            debt = (int(debt) / 1000 + 1) * 1000
        else:
            debt = int(debt)
    print debt