#!/usr/bin/python
# this NEEDS to be written in C!!! not python
import sys
while 1:
	a = sys.stdin.read(2)
	if not a:
		break
	sys.stdout.write(a+a+a+a)
