program kadai
implicit none

integer  ::  come(3)
integer  ::  x(10)
integer  ::  i

read(*,*) come

x(1)=come(1)*come(3)-come(2)

do i=1,9
x(i+1)=come(1)*x(i)-come(2)
end do

do i=1,10
write(*,*) x(i)
end do




end program kadai