start
natural n, s
s <- 0
cat_timp n <> 0
citeste n
daca n >= 100 SI n <= 999
s <- s + n
sfarsit_daca
sfarsit_cat_timp
scrie s
stop