f=map(int,raw_input().split()) n=input() exec"print n;i=1\nwhile n%f[i]:i+=2\nn=n*f[i-1]/f[i];"*201
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page