rishi=0.05

debt= 100000

week = int(input())

kiriage = 1000



def ceil(src, range):

    return((int)(src / range) + 1) * range



for i in range(0,week):

    if  debt * 1.05 % kiriage !=0:

        debt = ceil(debt * (1+rishi), kiriage)

        #print debt

    else:

        debt = debt * (1+rishi)

        #print debt



print(debt)
rishi=0.05

debt= 100000

week = int(input())

kiriage = 1000



def ceil(src, range):

    if int(src * (1 + rishi) % range) == 0:

        return src * (1+rishi)

    else:

        return((int)(src*(1+rishi) / range) + 1) * range



for i in range(0,week):

    debt = ceil(debt, kiriage)

print(debt)
rishi = 0.05
debt = 100000
week = int(input())
kiriage = 1000


def ceil(src, range):
    return ((int)(src / range) + 1) * range


for i in range(0, week):
    if debt * 1.05 % kiriage != 0:
        debt = ceil(debt * (1 + rishi), kiriage)
        # print debt
    else:
        debt = debt * (1 + rishi)
        # print debt
print(debt)

rishi = 0.05
debt = 100000
week = int(input())
kiriage = 1000


def ceil(src, range):
    if int(src * (1 + rishi) % range) == 0:
        return src * (1 + rishi)
    else:
        return ((int)(src * (1 + rishi) / range) + 1) * range


for i in range(0, week):
    debt = ceil(debt, kiriage)
print(debt)

-    return ((int)(src / range) + 1) * range +    if int(src * (1 + rishi) % range) == 0: +        return src * (1 + rishi) +    else: +        return ((int)(src * (1 + rishi) / range) + 1) * range -    if debt * 1.05 % kiriage != 0: -        debt = ceil(debt * (1 + rishi), kiriage) -        # print debt -    else: -        debt = debt * (1 + rishi) -        # print debt +    debt = ceil(debt, kiriage)