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: Accepted

Solution code:
h,w=map(int,input().split())
for _ in range(h):
    s=input()
    print(s+'\n'+s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
exec('print((input()+chr(10))*2,end="")\n'*int(input().split()[0]))

Submission status: Accepted

Solution code:
h,w=input().split();exec('print((input()+chr(10))*2,end="")\n'*int(h))

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
for i in range(h):
    s = input()
    print(s,s,sep="\n")

Submission status: Accepted

Solution code:
h,w= (int(i) for i in input().split())
c = [input() for i in range(h)]

for x in c:
    print(x)
    print(x)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in range(h):
  p=input()
  print(p)
  print(p)

Submission status: Accepted

Solution code:
H,W = map(int,input().split())
anss = []
for h in range(H):
   Ws=input()
   anss.append(Ws)
   anss.append(Ws)
for ans in anss:
    print(ans)

Submission status: Accepted

Solution code:
H, W = list(map(int, input().split()))

C = []
for i in range(H):
    C.append(list(input()))

for i in range(2 * H):
    R = []
    for j in range(W):
        R.extend(C[i // 2][j])
    print(''.join(R))

Submission status: Accepted

Solution code:
def main():
    H, W = map(int, input().split())
    for i in range(H):
        c = input()
        print(c)
        print(c)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
def double(x):
    print(x)
    print(x)

h,w = map(int,input().split())

pic = [list(map(str,input().split())) for i in range(h)]

for i in range(h):
    double(pic[i][0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
for i in range(h):
    row = input()
    print(row)
    print(row)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
for i in range(a):
  s=input()
  print(s);print(s)

Submission status: Accepted

Solution code:
# ABC 046 B

H,W =map(int,input().split())

List=[list(input()) for i in range(H)]
for i in range(H):
    str=""
    for j in range(W):
        str+=List[i][j]
    
    print(str)
    print(str)

Submission status: Accepted

Solution code:
H, W = list(map(int, input().split()))
S = [input() for i in range(H)]

ans = []

for i in range(2*H):
    ans.append(S[i//2])

print(*ans, sep='\n')

Submission status: Accepted

Solution code:
H, W = list(map(int, input().split()))
for i in range(H):
    C = input()
    print(C)
    print(C)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
s = [str(input()) for i in range(h)]
for i in range(h):
    print(s[i])
    print(s[i])

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
for i in range(h):
    c = input()
    print(c, '\n', c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
H, W = list(map(int, input().split()))
pic = [input() for i in range(H)]
for i in range(2*H):
  print(pic[int(i/2)])

Submission status: Accepted

Solution code:
H,W = map(int, input().split())
z=list()
for i in range(H):
  flag=input()
  z.append(flag)
  z.append(flag)
for i in range(len(z)):
  print(z[i])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
C = [input() for _ in range(H)] 
for c in C:
	print("{}\n{}".format(c,c))

Submission status: Accepted

Solution code:
for i in range(int(input().split()[0])): print((lambda s: s + '\n' + s)(input()))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
H,W = map(int,input().split())
_input = []
for i in range(H):
    row = list(map(str,input().split()))
    _input.append(list(row[0]))

for i in range(2*H):
    row = ""
    for j in range(W):
        row += _input[int(i/2)][j]
    print(row)

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
Cij = [input() for i in range(H)]
Dij = []

for i in range(H):
  Dij.append(Cij[i])
  Dij.append(Cij[i])

for i in Dij:
  print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
h,w = map(int, input().split())
listA = [input() for i in range(h)]
for i in range(h):
  print(listA[i]+"\n"+listA[i])

Submission status: Accepted

Solution code:
h,w = map(int, input().split())
c = [input() for i in range(h)]
for i in c:
    print(i)
    print(i)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for k in range(h):
  s=input()
  print(s)
  print(s)

Submission status: Accepted

Solution code:
H, W = [ int(x) for x in input().split() ]
Cs = [ input() for _ in range(H) ]

ans = ""
for i in range(2 * H):
    for j in range(W):
        ans += Cs[i//2][j]
    if i != 2 * H - 1:
        ans += "\n"

print(ans)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
c = [list(input()) for _ in range(h)]

for x in c:
    print(''.join(x))
    print(''.join(x))

Submission status: Accepted

Solution code:
h,w = map(int,input().split())
line = []

for i in range(h):
    line.append(input())

for i in range(len(line)):
    print(line[i])
    print(line[i])

Submission status: Accepted

Solution code:
""" AtCoder """

H, W = map(int, input().split())
C = [input() for _ in range(H)]

for i in range(H):
    print(C[i])
    print(C[i])

Submission status: Accepted

Solution code:
h,w = map(int, input().split())
cw = [input() for _ in range(h)]
for pict in cw:
    print(pict)
    print(pict)

Submission status: Accepted

Solution code:
from statistics import mean, median,variance,stdev
import numpy as np
import sys
import math
import fractions
import itertools
import copy

def j(q):
    if q==1: print("YES")
    else:print("NO")
    exit(0)


def ct(x,y):
    if (x>y):print("GREATER")
    elif (x<y): print("LESS")
    else: print("EQUAL")

def ip():
    return int(input())


def calculate(a):
    s = 0
    for i in range(len(a)):
        for k in range(i+1,len(a)):
            s+=(a[i]*a[k])
    return s

#n = ip()                              #入力整数1つ
n,m= (int(i) for i in input().split())      #入力整数横2つ
#n,a,b = (int(i) for i in input().split())    #入力整数横3つ
#n,a,b,c= (int(i) for i in input().split())  #入力整数横4つ
#s = [int(i) for i in input().split()]        #入力整数配列
#a = input()                                  #入力文字列
#a = input().split()                          #入力文字配列
#n = ip()                      #入力セット(整数改行あり)(1/2)
#a=[ip() for i in range(n)]    #入力セット(整数改行あり)(2/2)
#a=[input() for i in range(h)]
#jの変数はしようできないので注意
#全足しにsum変数使用はsum関数使用できないので注意
a =[]
for i in range(n):
	a.append(input())
for i in range(n):
	print(a[i])
	print(a[i])

Submission status: Accepted

Solution code:
h,w = map(int,input().split())
c = [input() for i in range(h)]

for i in range(h):
  print(c[i])
  print(c[i])

Submission status: Accepted

Solution code:
h, w = list(map(int, input().split()))
C = [input() for i in range(h)]
for c in C:
    print(c)
    print(c)

Submission status: Accepted

Solution code:
h,w=[int(i) for i in input().split()]
c=[]
for i in range(h):
    c.append(input())

for i in range(2*h):
    text=""
    for j in range(w):
        text+=c[i//2][j]
    print(text)

Submission status: Accepted

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

for i in range(H):
  print(S[i])
  print(S[i])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in open(0).readlines()[1:]:print(i+i)

Submission status: Accepted

Solution code:
print(*[i*2for i in open(0).readlines()[1:]])

Submission status: Accepted

Solution code:
for i in open(0).readlines()[1:]:print(i+i[:-1])

Submission status: Accepted

Solution code:
for i in open(0).readlines()[1:]:print(i+i,end='')

Submission status: Accepted

Solution code:
h,w = map(int,input().split())
pixels = [input() for _ in range(h)]
n_pixel = []
for p in pixels:
    n_pixel.append(p)
    n_pixel.append(p)

for np in n_pixel:
    print(''.join(np))

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
c = [input() for _ in range(h)]
for l in c:
    print(l)
    print(l)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
for i in range(h):
  c = str(input())
  print(c)
  print(c)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
C = [input() for i in range(h)]

D = [C[int(k/2)] for k in range(h*2)]
for d in D:
    print(d)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
H,W = map(int,input().split())

for i in range(H):
  c = input()
  print(c)
  print(c)

Submission status: Accepted

Solution code:
# coding: utf-8
H, W = map(int, input().split())
for i in range(2 * H):
    if i % 2 == 0:
        s = input()
    print(s)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in range(h):
    c=input()
    print(c)
    print(c)

Submission status: Accepted

Solution code:
# coding:utf-8

import sys

INF = float('inf')
MOD = 10 ** 9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x) - 1 for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def II(): return int(sys.stdin.readline())
def SI(): return input()


h, w = LI()
for _ in range(h):
    s = SI()
    print(s)
    print(s)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
c=[input() for i in range(h)]
  
for i in range(h):
  print(c[i])
  print(c[i])

Submission status: Accepted

Solution code:
H, W = [int(x) for x in input().split()]
C = []
for i in range(H):
  C.append(input())
  
for i in range(2 * H):
  print(C[i // 2])

Submission status: Accepted

Solution code:
H, W = map(int,input().split())

for _ in range(H):
  C = input()
  print(C)
  print(C)

Submission status: Accepted

Solution code:
H,W=map(int,input().split())

for i in range(H):
  s=input()
  print(s)
  print(s)

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
C = []
for _ in [0]*H:
    C = input().rstrip()
    print(C)
    print(C)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
h,w = map(int, input().split())
for i in range(0,h):
  s=input()
  print(s)
  print(s)

Submission status: Accepted

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

for r in C:
    print(r)
    print(r)

Submission status: Accepted

Solution code:
h, _ = map(int, input().split())
for i in range(h):
  a = input()
  print(a)
  print(a)

Submission status: Accepted

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

Submission status: Accepted

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

for map in MAPS:
    print('w'.join(map).replace('w',''))
    print('w'.join(map).replace('w',''))

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin
 
sys.setrecursionlimit(10**7) 
 
def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip()
def lc(): return list(ns())
def ni(): return int(stdin.readline())
def nf(): return float(stdin.readline())

h,w = li()
ss = [ns() for _ in range(h)]

for i in range(2*h):
    print(ss[i//2])

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
a = [[] for _ in range(h)]
for i in range(h):
    a[i] = input()

for i in range(h):
    print(a[i])
    print(a[i])

Submission status: Accepted

Solution code:
H,_=input().split()
for _ in [0]*int(H):s=input();print(s+"\n"+s)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
lst=[]
for i in range(h):
    lst.append(list(map(str,input().split())))
for u in lst:
    for i in range(2):
        print(*u)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
for i in range(h):
  row = input()
  for j in range(2):
    print(row)

Submission status: Accepted

Solution code:
s,t=map(int,input().split())
A,B=[input().split() for r in range(s)],[]
for x in A:
  for y in range(2):B.append(x)
for g in B:
  print(g[0])

Submission status: Accepted

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

H, W = map(int, input().split())
for i in range(H):
  line = input()
  print('{}\n{}'.format(line, line))

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
c=[]
for _ in range(h):
        c.append(input())

for cc in c:
        for _ in range(2):
                print(cc)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
L = []
for _ in range(h):
    li = input()
    L.append(li)
    L.append(li)
print("\n".join(L))

Submission status: Accepted

Solution code:
h,w = list(map(int,input().split()))
for _ in range(h):
  s = input()
  print(s)
  print(s)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in (input() for _ in range(h)):
    print(i,i,sep="\n")

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
l=[input() for _ in range(h)]

for i in range(h):
    for j in range(2):
        print(l[i])

Submission status: Accepted

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

for i in range(H):
    row = pixels[i]
    for pixel in row:
        print(pixel, end="")
    print()
    for pixel in row:
        print(pixel, end="")
    print()

Submission status: Accepted

Solution code:
h,w = map(int,input().split())
c = []
for i in range(h):
    l = list(input())
    c.append(l)
for i in range(h):
    for k in range(2):
        for j in range(w-1):
            print(c[i][j],end='')
        print(c[i][w-1])

Submission status: Accepted

Solution code:
h,w = (int(i) for i in input().split())
for i in range(h):
 s = input()
 print(s)
 print(s)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
listCSeq=[]
index=0
while index < h:
    seq = input()
    listCSeq.append(seq)
    index+=1

for seq in listCSeq:
    print(seq)
    print(seq)

Submission status: Accepted

Solution code:
def execute(h, w, c):
    result = []
    for ci in c:
        result.append(ci)
        result.append(ci)
    return result


if __name__ == '__main__':
    h, w = map(int, input().split())
    c = []
    for _ in range(h):
        c.append(input())
    for ci in execute(h, w, c):
        print(ci)

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
C = []

for i in range(H):
    C.append(input())

for i in range(H):
    for j in range(2):
        print(C[i])

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
c = [input() for _ in range(h)]
for i in range(h):
    print(c[i])
    print(c[i])

Submission status: Accepted

Solution code:
H,W = map(int,input().split())
A = []
for i in range(H):
    A.append(str(input()))
for i in range(H):
    for j in range(2):
        print(A[i])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
C = ['.'] * H
for i in range(H):
    C[i] = input()
for i in range(H):
    print(C[i])
    print(C[i])

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
s=[]
for i in range(a):
    d=input()
    s.append(d)
    s.append(d)
for i in range(2*a):
    print(s[i])

Submission status: Accepted

Solution code:
raws = []
H, W = map(int, input().split())

for i in range(H):
  raw = input()
  raws.append(raw)
  print(raws[i])
  print(raws[i])

Submission status: Accepted

Solution code:
# ABC 049 B
H, W = [int(x) for x in input().split()]
for i in range(H):
    s = input()
    print(s)
    print(s)

Submission status: Accepted

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

def main():
    """Function."""
    h, w = map(int, input().split())
    for i in range(h):
        line = str(input())
        print(line)
        print(line)

if __name__ == "__main__":
    main()

Submission status: Accepted

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

for i in range(H) :
    print(lines[i])
    print(lines[i])

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
c=[input() for i in range(h)]

for i in range(h):
  print(c[i])
  print(c[i])

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
for i in range(h):
    tmp = input()
    print(tmp + "\n" + tmp)

Submission status: Accepted

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

for i in range(H):
    print(C[i])
    print(C[i])

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
for i in range(a):
  c=input()
  print(c)
  print(c)

Submission status: Accepted

Solution code:
[f(input())for _ in range([int(i) for i in input().split()][0]) for f in [lambda x:print(x,x,sep='\n')]]

Submission status: Accepted

Solution code:
H,W = map(int,input().split())
s = [input() for i in range(H)]
figure = ["".join([s[i//2][j-1] for j in range(1,W+1)]) for i in range(2*H)]
for line in figure:
    print(line)

Submission status: Accepted

Solution code:
H,W = map(int,input().split())
for i in range(H):
     x = str(input())
     print(x)
     print(x)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in [0]*h:
  c=input()
  for j in [0]*2:
    print(c)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
a=[]
for i in range(h):
    a.append(input())
for i in range(h):
    print(a[i])
    print(a[i])

Submission status: Accepted

Solution code:
h,w = map(int,input().split())
for i in range(h):
    s = input()
    for j in range(2):
        print(s)

Submission status: Accepted

Solution code:
h, w = [int(x) for x in input().split()]
for i in [input() for x in [0] * h]:
    print(i + '\n' + i)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
S = [input() for _ in range(h)]
for s in S:
  print(s)
  print(s)

Submission status: Accepted

Solution code:
int_h, int_w = map(int, input().split())

li_px = list()

for i in range(int_h):
    li_px.append(list(input().split()))

for l in li_px:
    print("".join(l), "".join(l), sep="\n")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

A = []
for i in range(a):
    A.append(input())

for j in range(a):
        print(A[j])
        print(A[j])

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
for _ in range(H):
    temp = input()
    print(temp)
    print(temp)

Submission status: Accepted

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

for i in range(H):
    print(Css[i])
    print(Css[i])

Submission status: Accepted

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

# for k in range(len(C)):
#     C.insert(-1-2*k, C[-1-2*k])

for j in range(len(C)):
    print(''.join(C[j]))
    print(''.join(C[j]))

Submission status: Accepted

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

for k in range(len(C)):
    C.insert(-1-2*k, C[-1-2*k])

for j in range(len(C)):
    print(''.join(C[j]))

Submission status: Accepted

Solution code:
a,b= map(int, input().split())
t = []
for i in range(a):
    t.append(input())
for i in range(a):
    print(t[i])
    print(t[i])

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in range(h):
    c = input()
    print(c)
    print(c)
#コピペです。

Submission status: Accepted

Solution code:
temp = input().rstrip().split(" ")
H = int(temp[0])
list = []
for i in range(H):
    list.append(input().rstrip())
    for j in range(2):
        print(list[i])

Submission status: Accepted

Solution code:
# 

h,w=map(int,input().split())

for i in range(h):
    s=input()
    for i in range(2):
        print(s)

Submission status: Accepted

Solution code:
H, W = map(int,input().split())

result = []
for _ in range(H):
  c = input()
  result.append(c)
  result.append(c)
for r in result:
  print(r)

Submission status: Accepted

Solution code:
def main():
    h, _ = map(int, input().split())
    coord = [''] * (h * 2 + 1)
    for y in range(1, h + 1):
        coord[y] = input()

    for y in range(h, 0, -1):
        coord[y * 2] = coord[y]
        coord[y * 2 - 1] = coord[y]

    for row in coord[1:]:
        print(row)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
c = []
for i in range(h):#h:高さ
    c.append([str(m) for m in list(input())])
for i in range(2 * h):
    if i != 0:
        print()
    for j in range(w):
        print(c[i // 2][j], sep = "", end = "")

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in range(h):
    c = input()
    print(c)
    print(c)

Submission status: Accepted

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

for j in range(h):
    print(c[j])
    print(c[j])

Submission status: Accepted

Solution code:
h, w = [int(i) for i in input().split()]
for i in range(h):
    c = input()
    print(c)
    print(c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
h,w = map(int, input().split())
stage = [[list(input())]*2 for i in range(h)]
for i in stage:
    for j in i:
        for k in j:
            print(k,end = "")
        print()

Submission status: Accepted

Solution code:
line = input().split()
h = int(line[0])
w = int(line[1])
comp = []

for i in range(h):
    n = input()
    comp.append(n)
    comp.append(n)

for i in comp:
    print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
c = []
for i in range(h):
    c.append(input())
for i in range(h):
    print(c[i])
    print(c[i])

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
C=[""]*(2*h)
for i in range(0,h*2,2):
  C[i]=input()
  if i+1 <=len(C):
    C[i+1]=C[i]
for i in C:
  print(i)

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
original = [list(input()) for i in range(H)]
for i in range(2 * H):
    print(''.join(original[i // 2][:]))

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
original = [list(input()) for i in range(H)]
converted = [[0 for j in range(W)] for i in range(2 * H)]
for i in range(2 * H):
    for j in range(W):
        converted[i][j] = original[i // 2][j]
        
for row in converted:
    print(''.join(row))

Submission status: Accepted

Solution code:
H, W = [int(x) for x in input().split()]
for h in range(H):
    s = input()
    print(s)
    print(s)

Submission status: Accepted

Solution code:
H,W=map(int,input().strip().split(" "))

for i in range(H):
    a=input()
    print(a)
    print(a)

Submission status: Accepted

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

for l in line:
    print(l)
    print(l)

Submission status: Accepted

Solution code:
height, width = map(int, input().split())
c = []
for _ in range(height):
    c.append(input())

for i in range(height):
    print(c[i] + "\n" + c[i])

Submission status: Accepted

Solution code:
height, width = map(int, input().split())
c = []
for _ in range(height):
    c.append(input())

for i in range(height):
    print(c[i])
    print(c[i])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
H, W = list(map(int, input().rstrip().split()))

for i in range(H):
    s = input().rstrip()
    print(s)
    print(s)

Submission status: Accepted

Solution code:
# coding: utf-8
H, W = map(int, input().split())

for _ in range(H):
    l = input()
    print(l, l, sep="\n")

Submission status: Accepted

Solution code:
# coding: utf-8
H, W = map(int, input().split())

for _ in range(H):
    l = input()
    print(l + "\n" + l)

Submission status: Accepted

Solution code:
# coding: utf-8
H, W = map(int, input().split())

for _ in range(H):
    l = input()
    print(l)
    print(l)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
c=[]
for i in range(h):
    c.append(input())
for i in range(2*h):
    print(c[i//2])

Submission status: Accepted

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

ans = []

for i in range(2*H):
    row = ''
    for j in range(W):
        row += C[i//2][j]
    ans.append(row)

for i in range(2*H):
    print(ans[i])

Submission status: Accepted

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

h, w = map(int, input().split())
c = []
for n in range(h):
    c.append(list(input()))

for i in range(1, h * 2 + 1):
    for j in range(1, w + 1):
        print(c[(i + 1) // 2 - 1][j - 1], end='')
    print()

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in range(h):
    a = input()
    print(a)
    print(a)

Submission status: Accepted

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

for i in range(H):
    print(C[i])
    print(C[i])

Submission status: Accepted

Solution code:
h,w = map(int, input().split())
stage = [list(input()) for i in range(h)]
ans = [0 for i in range(2*h)]
for i in range(h):
    ans[2*i] = stage[i]
    ans[2*i+1] = stage[i]
for i in ans:
    for j in i:
        print(j, end = "")
    print()

Submission status: Accepted

Solution code:
a,b = list(map(int,input().split()))
c = [input() for i in range(a)]

for i in range(a):
  print(c[i])
  print(c[i])

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in range(h):
    line=input()
    print(line)
    print(line)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
H, W = map( int, input().split())
C = [ input() for _ in range(H)]
ANS = [""]*(H*2)
for i in range(H*2):
    print(C[i//2])

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
STR = []
for i in range(H):
    s = str(input())
    STR.append(s)
    STR.append(s)
print("\n".join(STR))

Submission status: Accepted

Solution code:
## ABC 049 b
h, w = (int(_) for _ in input().split())
c = [input() for i in range(h)]

ans = []
for i in range(h):
    ans.append(c[i])
    ans.append(c[i])

for i in ans:
    print(i)

Submission status: Accepted

Solution code:
[h,w] = [int(i) for i in input().split()]
s=[]
for i in range(h):
  s.append(input())

for i in range(h):
  print(s[i])
  print(s[i])

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
s = []
for _ in range(h):
    c = input()
    s.append(c+"\n"+c)
print('\n'.join(s))

Submission status: Accepted

Solution code:
for i in[0]*int(input().split()[0]):print('\n'.join([input()]*2))

Submission status: Accepted

Solution code:
i,p=input,print;H,W=map(int,i().split())
for j in range(H):
    k=i();p(k);p(k)

Submission status: Accepted

Solution code:
i,p=input,print;H,W=map(int,i().split());C=[i() for x in range(H)]
for j in range(H):
    p(C[j]);p(C[j])

Submission status: Accepted

Solution code:
for i in [0]*int(input().split()[0]):print('\n'.join([input()]*2))

Submission status: Accepted

Solution code:
HW = [int(_) for _ in input().split()]
C = [input() for _ in range(HW[0])]
for i in range(HW[0]):
    print(C[i])
    print(C[i])

Submission status: Accepted

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

for i in c:
    print(i)
    print(i)

Submission status: Accepted

Solution code:
i,j=map(int,input().split())
a=[]
for x in range(i):
	b=input()
	a.append(b)
	a.append(b)
for x in range(2*i):
	print(a[x])

Submission status: Accepted

Solution code:
h,w = map(int, input().split())
ans = []
for _ in range(h):
    ans.append(input())
    ans.append(ans[-1])
for i in ans:
    print(i)

Submission status: Accepted

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

for i in li:
    for z in range(2):
        print(i)