class rnd:
    def __init__(self, s = 1234):
        self.seed = s
                
    def gen(self):
	self.seed = \
	(self.seed & 0xffffffff)*4294957665 + (self.seed>>32)
	return (self.seed & 0xffffffff)

r = rnd()
for i in range(30):
    print r.gen(),