-module(f). -export([m/0]). m()->{_,[N,X,R]}=io:fread('',"~d:~d:~d"),f(N,X,R). f(0,_,_)->x;f(N,X,R)->io:write(X),io:nl(),f(N-1,X+X*R div$d,R).