
#include <stdio.h>

int main()
{
    int i, n, debt = 100000;
    scanf("%d", &n);

    for(i = 0; i < n; i++)
    {
        debt += 0.05*debt;
        if(debt % 1000)
        {
            debt = debt - debt % 1000 + 1000;
        }
    }
    printf("%d\n", debt);
    return 0;
}

