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:
#
# 　　  ⋀_⋀　 
#　　  (･ω･)  
# .／ Ｕ ∽ Ｕ＼
#  │＊　合　＊│
#  │＊　格　＊│ 
#  │＊　祈　＊│ 
#  │＊　願　＊│ 
#  │＊　　　＊│ 
#      ￣
#
import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline
from math import floor,ceil,sqrt,factorial,log #log2ないｙｐ
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
inf=float('inf')
mod = 10**9+7
def pprint(*A): 
    for a in A:     print(*a,sep='\n')
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
def main():
    H,W = MI()
    S=[ST() for _ in range(H)]
    for s in S:
        print(s)
        print(s)
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

C = [str(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())
C = [input() for i in range(h)]
for c in C:
	[print(c) for i in range(2)]

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=[int(i) for i in input().split()]
for i in range(h):
    lst=[i for i in input().split()]
    for j in lst:
        print(j)
    for j in lst:
        print(j)

Submission status: Accepted

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


for _ in range(H):
    s = str(input())
    print(s)
    print(s)

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())
ans = []
for i in range(H):
    S = input()
    ans.append(S)
    ans.append(S)
for i in ans:
    print(i)

Submission status: Accepted

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

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())
for i in range(h):
    s=input()
    print(s+'\n'+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 = map(int, input().split())

for _ in range(H):
    c = input()
    print(c, c, sep='\n')

Submission status: Accepted

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

Submission status: Accepted

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

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:
def solve():
    H, W = tuple(map(int, input().split()))
    lines = []
    for _ in range(H):
        lines.append(tuple(input()))

    res = []
    for line in lines:
        res.append(line)
        res.append(line)

    return res


if __name__ == '__main__':
    res = solve()
    for line in res:
        print("".join(line))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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())
P=[]
for i in range(H):
    U=input()
    P.append(U)

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
h,w=map(int,input().split())
s=[]
ans=''
for i in range(h):
    s.append(list(input()))
for j in range(h):
    for l in range(w):
            ans+=s[j][l]
    for k in range(2):
        print(ans)
    ans=''

Submission status: Accepted

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

Submission status: Accepted

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

for row in C:
    print(*row, sep="")
    print(*row, sep="")

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:
# python3 (3.4.3)
import sys
input = sys.stdin.readline

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

for c in C:
    print(c)
    print(c)

Submission status: Accepted

Solution code:
n,m = [int(i) for i in input().split()]

l = [[i for i in input()] for _ in range(n)]

for i in range(n):
    for j in range(2):
        print(''.join(l[i]))

Submission status: Accepted

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

for i in range(h):
    print(*c[i],sep="")
    print(*c[i],sep="")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def examB():
    H, W = LI()
    C = [LS() for _ in range(H)]
    ans = []
    for i in range(2*H):
        ans.append(C[(i)//2])
    for v in ans:
        print(" ".join(map(str,v)))


import sys
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examB()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC 049: B – たてなが / Thin
h, w = [int(s) for s in input().split()]
c = ['' * w] * 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:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

h,w = inpl()
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 i in range(h):
  x=input()
  print(x)
  print(x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
H,W=map(int,input().split())
ans=[]
for i in range(H):
    s=input()
    ans.extend([s,s])
for i in range(2*H):
    print(ans[i])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
for i in range(h):
    c = input()
    for j in range(2):
        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())
L = [input() for i in range(h)]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for _c in c:
    print(_c)
    print(_c)

Submission status: Accepted

Solution code:
# coding: utf-8
H, W = map(int, input().split())
for i in range(H):
    S = input()
    print(S)
    print(S)

Submission status: Accepted

Solution code:
import math

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

pic = []
for y in range(h):
  p = []
  for x in input():
    p.append(x)
  pic.append(p)

pic_2 = []
for y in range(h*2):
  p_2 = []
  for x in range(w):
    py = int(math.floor(y / 2))
    if len(pic) <= py:
      p_2.append(pic_2[py][x])
    else:
      p_2.append(pic[py][x])
  pic_2.append(p_2)
    
    
for p in pic_2:
  print(''.join(p))

Submission status: Accepted

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

result = []

for h_i in range(h):
  row_i = input()
  result.append(row_i)
  result.append(row_i)
  
print(*result, sep='\n')

Submission status: Accepted

Solution code:
H,W = map(int,input().split())
C = [[0 for _ in range(W+1)]]
for _ in range(H):
    row = list(input())
    row.insert(0,0)
    C.append(row)
F = [[0 for _ in range(W+1)]]
for i in range(1,2*H+1):
    row = [0 for _ in range(W+1)]
    for j in range(1,W+1):
        row[j] = C[(i+1)//2][j]
    F.append(row)
for i in range(1,2*H+1):
    print("".join(F[i][1:]))

Submission status: Accepted

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

g = [input() for _ in range(H)]
for i in range(H):
    print(g[i])
    print(g[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:
def main(h, w, c):
    for line in c:
        print(line)
        print(line)


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

    main(h, w, c)

Submission status: Accepted

Solution code:
h,w = map(int,input().split())
c = []
for i in range(h):
    tmp = input()
    c.append(tmp)
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 = [input() for i in range(h)]

for row in c:
    print(row)
    print(row)

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())
ary = [list(map(str, list(input().split()))) for i in range(H)]
ary_d = []
for i in range(H):
    ary_d.append(ary[i])
    ary_d.append(ary[i])


print('\n'.join(''.join([str(j) for j in i]) for i in ary_d))

Submission status: Accepted

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

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())
listA =[]
while True:
    try:
        listA.append(list(map(str,input().split())))
    except:
        break;
for i in range(0,2*H):
    for j in range(0,W):
        if j == W-1:
            print(listA[i//2][0][j])
        else:
            print(listA[i//2][0][j],end="")

Submission status: Accepted

Solution code:
mat=[]
n,m=map(int,input().split())
for i in range(n):
    mat.append(input())
for i in range(n):
    print(mat[i])
    print(mat[i])

Submission status: Accepted

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

for i in range(h) :
    s = input()
    print(s + '\n' + s)

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().strip().split(' '))
for _ in range(H):
  s = input().strip()
  print(s)
  print(s)

Submission status: Accepted

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

MarkList = []
for M in range(H):
    MarkList.append(input().split())

for N in range(2*H):
    if N%2 == 0:
        print("{0}".format(MarkList[int(N/2)][0]))

    else:
        print("{0}".format(MarkList[int((N-1)/2)][0]))

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
matrix = []
for i in range(H):
    matrix.append(list(map(str, input().split())))
for j in range(H):
    ans = ','.join(matrix[j])
    print(ans)
    print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ans = ''

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

for i in range(h):
    s = input()
    if i != 0:
        ans += "\n"
    ans += s + "\n" + s

print(ans)

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    h, w = map(int, input().split())
    c = []
    for i in range(h):
        c.append(input())
    newC = []
    for i in range(2*h - 1):
        newC.append(c[(i) // 2])
    newC.append(c[len(c) - 1])
    for i in newC:
        print(i)

Submission status: Accepted

Solution code:
h,w = list(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:
import math

def main():
  h, w = map(int, raw_input().split())
  grid = []
  for _ in xrange(h):
    grid.append(raw_input())

  if h == 1:
      for x in xrange(2):
          print(grid[0])
      return
  
  new_grid = []
  for i in xrange((h-1)*2):
      row = ['' for _ in xrange(w)] 
      pos = (i+1)/2
      for j in xrange(w):
          row[j] = grid[pos][j]
      if pos == 0:
          new_grid.append(''.join(row))
      new_grid.append(''.join(row))
  new_grid.append(new_grid[-1])
  
  for row in new_grid:
      print(''.join(row))


main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
# coding: utf-8
# Your code here!

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

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

Submission status: Accepted

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

resolve()

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):
    s = input()
    print(s)
    print(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
r = [list(input()) for i in range(h)]
new_h = [0] * w
new_r = [new_h for i in range(2*h)]
for i in range(0, 2*h, 2):
  new_r[i] = r[(i+1)//2]
  new_r[i+1] = r[(i+1)//2]
for i in new_r:
  print(*i,sep="", end="\n")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for row in m:
    print(''.join(row + ['\n'] + row))

Submission status: Accepted

Solution code:
def slove():
    import sys
    input = sys.stdin.readline
    h, w = list(map(int, input().rstrip('\n').split()))
    c = [str(input().rstrip('\n')) for _ in range(h)]
    for i in range(h):
        print(c[i])
        print(c[i])


if __name__ == '__main__':
    slove()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

line = input()
sH, sW = line.split()
H = int(sH)
W = int(sW)

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

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],c[i],sep='\n')

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 h in range(H):
  s=input()
  print(s)
  print(s)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
c = [0]*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:
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())
c=[[0]*w for _ in range(h)]
for i in range(h):
    c[i]=list(map(str,input()))
#print(c)
for i in range(h):
    print("".join(map(str,c[i])))
    print("".join(map(str,c[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:
h, w = map(int, input().split(" "))
for temp_h in range(h):
  pix = input()
  print(pix)
  print(pix)

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())
for _ in range(H):
    s = input()
    for l in range(2):
        print(s)

Submission status: Accepted

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

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(' '))
rows = []
for h in range(H):
  row = input()
  print(row)
  print(row)

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())
T=[input() for i in range(H)]

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

Submission status: Accepted

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

Submission status: Accepted

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

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=[list(map(str,input().split())) for i in range(H)]
for j in C:
    print("".join(j)+"\n"+"".join(j))

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
C = [input() for i in range(H)]
C2 = []
for i in range(H):
    C2.append(C[i])
    C2.append(C[i])
ans = '\n'.join(C2)
print(ans)

Submission status: Accepted

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


if __name__ == "__main__":
    resolve()

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())

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):
  s=input()
  print(s)
  print(s)

Submission status: Accepted

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

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

for ele in c:
    print(ele)
    print(ele)

Submission status: Accepted

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

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

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:
def solve():
    H,W = map(int, input().split())
    ret = ''
    for _ in range(H):
        input_line = input()
        ret += input_line+'\n'
        ret += input_line+'\n'
        
    print(ret[:-1])
    
solve()

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())
for i in range(h):
    print((input() + "\n")* 2)

Submission status: Accepted

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

for a in A:
    print(a)

Submission status: Accepted

Solution code:
H, W = tuple(map(int, input().split()))
C = []
for h in range(H):
    C.append([c for c in input()])
res = [["." for _ in range(W)] for _ in range(2*H)]
diff = 0
for h in range(H):
    for w in range(W):
        if C[h][w] == "*":
            res[h+diff][w] = "*"
            res[h+diff+1][w] = "*"
    diff += 1
res = ["".join(x) for x in res]
res = "\n".join(res)
print(res)

Submission status: Accepted

Solution code:
h, w = (int(x) for x in input().split())

for _ in range(h):
    s = input()
    print(s)
    print(s)

Submission status: Accepted

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

M = []

for _ in range(H):
    temp = input()
    M.append(temp)

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

def main():
    H, W = map(int, input().split())
    c = [input().strip() for i in range(H)]

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

if __name__ == "__main__":
    main()

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())
C = [input().split()*2 for _ in range(h)]
for c in C:
    for p in c:
        print(p)

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()))
array = [input() for _ in range(H)]
for i in range(H):
    print(array[i])
    print(array[i])

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
C = list(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())
C = [list(input()) for _ in range(H)]
for c in C:
    print(''.join(c))
    print(''.join(c))

Submission status: Accepted

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

Submission status: Accepted

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

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())
ans = []
for i in range(h):
    c = input()
    ans.append(c)
for i in ans:
    print(i)
    print(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], C[i], sep='\n')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

# print(H)
# print(W)

for i in range(H):
    # print(i)
    C = input()
    
    print(C)
    print(C)

Submission status: Accepted

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

for v in pic:
    print(*v)
    print(*v)

Submission status: Accepted

Solution code:
H,W  = map(int,input().split())
a = []
for i in range(H):
    b = input()
    a.append(b)
    a.append(b)
print(*a,sep="\n")

Submission status: Accepted

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

for i in range(h):
  m =input()
  print(m)
  print(m)

Submission status: Accepted

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

for C_list in C:
    print(*C_list, sep='')
    print(*C_list, sep='')

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,input().split())
rlists = []
for i in range(h):
    yoko = list(input())
    rlists.append(yoko)
    rlists.append(yoko)
for rlist in rlists:
    print(*rlist,sep="")

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, _ = 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())
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())
matrix = []

for i in range(h):
  matrix.append(list(map(str, input().split())))

for i in range(len(matrix)):
  print(matrix[i][0])
  print(matrix[i][0])

Submission status: Accepted

Solution code:
#インポート
import sys

#入力用
def ILI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def ISI(): return map(int, sys.stdin.readline().rstrip().split())
def II(): return int(sys.stdin.readline().rstrip())
def ISS(): return sys.stdin.readline().rstrip().split()
def IS(): return sys.stdin.readline().rstrip()

H, W = ISI()
A = [IS() for _ in range(H)]

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

Submission status: Accepted

Solution code:
height, wide = map(int, input().split())

for i in range(height):
  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 = [list(input().split())for i in range(h)]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from collections import Counter

stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

mod = 10 ** 9 + 7

h, w = na()
c = []
for i in range(h):
    c.append(input())

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