b:=(x:=File standardInput readLine split map(asNumber))pop;a:=x pop;100repeat(write(b=(a+a=b)%10," "))