for s in open(0).read():print(end=s+s)