Problem:


Score : 200 points

Problem Statement

There is an image with a height of H pixels and a width of W pixels. Each of the pixels is represented by either . or *. The character representing the pixel at the i-th row from the top and the j-th column from the left, is denoted by C_{i,j}.

Extend this image vertically so that its height is doubled. That is, print a image with a height of 2H pixels and a width of W pixels where the pixel at the i-th row and j-th column is equal to C_{(i+1)/2,j} (the result of division is rounded down).

Constraints

1≦H, W≦100

C_{i,j} is either . or *.

Input

The input is given from Standard Input in the following format:

H W
C_{1,1}...C_{1,W}
:
C_{H,1}...C_{H,W}

Output

Print the extended image.

Sample Input 1

2 2
*.
.*

Sample Output 1

*.
*.
.*
.*

Sample Input 2

1 4
***.

Sample Output 2

***.
***.

Sample Input 3

9 20
.....***....***.....
....*...*..*...*....
...*.....**.....*...
...*.....*......*...
....*.....*....*....
.....**..*...**.....
.......*..*.*.......
........**.*........
.........**.........

Sample Output 3

.....***....***.....
.....***....***.....
....*...*..*...*....
....*...*..*...*....
...*.....**.....*...
...*.....**.....*...
...*.....*......*...
...*.....*......*...
....*.....*....*....
....*.....*....*....
.....**..*...**.....
.....**..*...**.....
.......*..*.*.......
.......*..*.*.......
........**.*........
........**.*........
.........**.........
.........**.........



Sample input:
2 2
*.
.*


Sample output:
*.
*.
.*
.*

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
px = []
ans = []
for x in range(H):
    px.append(W[x])
    px.append(W[x])

for x in range(px):
    print(px[x])

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
px = []
ans = []
for x in range(H):
    px.append(W[x])
    px.append(W[x])

print(px)

Submission status: Runtime Error

Solution code:
H,W=[int(i) for i in input().split()
ans=[]
for i in range(H):
     lis =input()
     ans.append(lis)
     ans.append(lis)

print(ans)

Submission status: Runtime Error

Solution code:
H,W=[int(i) for i in input().split()
ans=[]
for i in range(H):
lis =input()
     ans.append(lis)
     ans.append(lis)

print(ans)

Submission status: Runtime Error

Solution code:
H,W=[int(i) for i in input().split()
ans=[]
for i in range(H):
 lis =input()
 ans.append(lis)
 ans.append(lis)

print(ans)

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
C_list = []
for _ in range(W):
    i = input()
    print(i + "\n" + i)

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
C_list = []
for _ in range(W):
    C_list.append(input())
    
for i in C_list:
    print(i + "\n" + i)

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
C_list = []
for _ in range(W):
    C_list.append(input())
    
for i in C_list:
    print(i)
    print(i)

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
C_list = []
for _ in range(W):
    temp_list = input()
    print(temp_list)
    print(temp_list)

Submission status: Runtime Error

Solution code:
H, W = map(int,input().strip().split())
for i in range(H):
  line = input()
  for j in range(2):
  print(line)

Submission status: Runtime Error

Solution code:
fig = []
h,w  = map(int,input().split())
for i in range(h):
    fig.append(list(str(input())))
    
fig_2 = []

for i in range(h):
    fig_2.append(fig[i])
    fig_2.append(fig[i])
    
for i in range(len(fig_2)):
    onetime = ''
    for j in range(fig_2[i]):
        onetime = onetime + fig_2[i][j]
    print(onetime)

Submission status: Runtime Error

Solution code:
w=int(input().split()[1])
c=[input() for _ in [0]*w]
for _c in c:
    print(_c)
    print(_c)

Submission status: Runtime Error

Solution code:
H, W = map(int, raw_input().split())
for i in range(W):
    s = raw_input()
    print s
    print s

Submission status: Runtime Error

Solution code:
h, w = map(int, raw_input().split())
d = [100]
for i in range(0, h):
	d[i] = raw_input()
for i in range(0, h):
	print d[i]
	print d[i]

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 22 16:06:57 2017

@author: 0048005387
"""

h, w = map(int, raw_input().split())
c=[]

for i in range(h):
    c.append(map(str, raw_input().split()))
    
for i in c:
    for j in i:
        print j
22 3    for j in i:
        print j

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# problem B
y, x = map(int, input())
for i in range(y):
    l = input()
    print(l)
    print(l)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# problem B
y, x = map(int, input())
l = list(input() for i in range(y))
for i in range(y):
    print(l[i])
    print(l[i])

Submission status: Runtime Error

Solution code:
inp = input()
H = int(inp.split()[0])
W = int(inp.split()[1])
l = []
for i in range(H):
    l.append(list(input().split()))

for i in range(H*2):
    line = []
    for j in range(W):
        line = line + l[(i+1)/2][j]
    print(line)

Submission status: Runtime Error

Solution code:
inp = input()
H = inp.split()[0]
W = inp.split()[1]
l = []
for i in range(H):
    l.append(input().split())

for i in range(H*2):
    line = []
    for j in range(W):
        line = line + l[(i+1)/2][j]
    print(line)

Submission status: Runtime Error

Solution code:
inp = input()
H = inp.split()[0][0]
W = inp.split()[0][0]
l = []
for i in range(H):
    l.append(inp[i+1])

for i in range(H*2):
    line = []
    for j in range(W):
        line = line + inp[(i+2)/2][j]
    print(line)

Submission status: Runtime Error

Solution code:
# -*- coding:utf-8 -*-


H, W = int(raw_input()).split()

for i in range(H):
    for j in range(W):
        row = raw_input()
        print(row)
        print(row)

Submission status: Runtime Error

Solution code:
# -*- coding:utf-8 -*-


H, W = int(raw_input().split())

for i in range(H):
    for j in range(W):
        row = raw_input()
        print(row)
        print(row)

Submission status: Runtime Error

Solution code:
# -*- coding:utf-8 -*-


H, W = list(raw_input())

for i in range(H):
    for j in range(W):
        row = list(raw_input())
        print(row)
        print(row)

Submission status: Runtime Error

Solution code:
height = int(input())
width = int(input())

for hindex in range(height):
    x = input()
    print(x)
    print(x)

Submission status: Runtime Error

Solution code:
a = raw_input()
a.split(' ')
for i in range(a[0]):
    a = raw_input()
    print a
    print a

Submission status: Runtime Error

Solution code:
#coding:utf-8
a = raw_input()
while 1:
    a = raw_input()
    if a == '':
        break
    print a
    print a

Submission status: Runtime Error

Solution code:
import sys
H,_=map(int,raw_input().spilt())
for _ in range(0,H):
    line=sys.stdin.readline()
    print line
    print line

Submission status: Runtime Error

Solution code:
# --* coding:utf-8 *--

size = int(input().split())

for i in range(size[0]):
	data = input()
	
	print(data)
	print(data)