import Data.Fixed
main = getContents >>= mapM_ (putStrLn . fout . debt_hell . fin) . lines
fin = read
fout = show . round
debt_hell n = foldr (\e acc -> round1000 (acc*e)) 100000 (replicate n 1.05)
 where round1000 x = if mod' x 1000 == 0 then x else x + (1000 - mod' x 1000)