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,raw_input().split())
c = []
for x in xrange(0,h):
    s = raw_input()
    c.append(s)
for x in xrange(0,h):
    print c[x]
    print c[x]

Submission status: Accepted

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

for i in range(a):
	t = raw_input()
	print t
	print t

Submission status: Accepted

Solution code:

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

for h in range(H):
    crow = input()
    C.append(crow)


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

Submission status: Accepted

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


if __name__=="__main__":
    solve()

Submission status: Accepted

Solution code:
h, w = [int(x) for x in raw_input().split()]
for i in range(h):
    r = raw_input()
    print r
    print r

Submission status: Runtime Error

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

C = [input() for i in range(W)]

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

Submission status: Runtime Error

Solution code:
n,m = map(int, input().split())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
H,W=map(int, input().split())
c=[list(input()) for i in range(W)]
a=[0]*W
ans=''
   
for i in range(2*H):
    ans=''
    for j in range(W):
        #print((i)//2)
        a[j]=c[int((i)//2)][j]
        ans+=a[j]
    print(ans)

Submission status: Runtime Error

Solution code:
H,W=map(int, input().split())
c=[input().split() for i in range(W)]
a=[0]*W
ans=''
   
for i in range(2*H):
    ans=''
    for j in range(W):
        #print((i)//2)
        a[j]=c[int((i)//2)][j]
        ans+=a[j]
    print(ans)

Submission status: Runtime Error

Solution code:
IN = iter(Input.split('\n')).__next__
def input():
    return IN()


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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#
# abc049 b
#

import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """2 2
*.
.*"""
        output = """*.
*.
.*
.*"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """1 4
***."""
        output = """***.
***."""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """9 20
.....***....***.....
....*...*..*...*....
...*.....**.....*...
...*.....*......*...
....*.....*....*....
.....**..*...**.....
.......*..*.*.......
........**.*........
.........**........."""
        output = """.....***....***.....
.....***....***.....
....*...*..*...*....
....*...*..*...*....
...*.....**.....*...
...*.....**.....*...
...*.....*......*...
...*.....*......*...
....*.....*....*....
....*.....*....*....
.....**..*...**.....
.....**..*...**.....
.......*..*.*.......
.......*..*.*.......
........**.*........
........**.*........
.........**.........
.........**........."""
        self.assertIO(input, output)


def resolve():
    H, W = map(int, input().split())
    ans = []
    for i in range(H):
        S = input()
        ans.append(S)
        ans.append(S)

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


if __name__ == "__main__":
    # unittest.main()
    resolve()

Submission status: Runtime Error

Solution code:
#
# abc049 b
#

import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """2 2
*.
.*"""
        output = """*.
*.
.*
.*"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """1 4
***."""
        output = """***.
***."""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """9 20
.....***....***.....
....*...*..*...*....
...*.....**.....*...
...*.....*......*...
....*.....*....*....
.....**..*...**.....
.......*..*.*.......
........**.*........
.........**........."""
        output = """.....***....***.....
.....***....***.....
....*...*..*...*....
....*...*..*...*....
...*.....**.....*...
...*.....**.....*...
...*.....*......*...
...*.....*......*...
....*.....*....*....
....*.....*....*....
.....**..*...**.....
.....**..*...**.....
.......*..*.*.......
.......*..*.*.......
........**.*........
........**.*........
.........**.........
.........**........."""
        self.assertIO(input, output)


def resolve():
    H, W = map(int, input().split())
    ans = []
    for i in range(H):
        S = input()
        ans.append(S)
        ans.append(S)

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


if __name__ == "__main__":
   # unittest.main()
   resolve()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for i in range(len(c)):
    print(str(c[i]))
    print(str(c[i]))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

for i in li:
    print(i,i,sep="\n")***.

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for i in range(2):    
    for j in range(b):
        print(list_a[j][0])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#たてなが
def ABC_49_B():
    H,W = map(int, input().split())
    C = [0 for _ in range(W)]

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

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


if __name__ == '__main__':

    ABC_49_B()

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

s = [input() for_ in range(h)]

for s_i in s:
  print(s_i)
  print(s_i)

Submission status: Runtime Error

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

s = [input() for_ in range(h)]

for s_i in s:
  print(*s_i,sep='')
  print(*s_i,sep='')

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
import sys
from collections import Counter
from itertools import permutations, combinations
#from fractions import gcd
from math import gcd
from math import ceil, floor
import bisect
sys.setrecursionlimit(10 ** 6)
inf = float("inf")

def input():
    return sys.stdin.readline()[:-1]

def main():
    h, w = map(int, input().split())
    C = [None] * h
    for i in range(h):
        C[i] = input()
    for i in range(h):
        print(C[i])
        print(C[i])

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
a = []
for i in range(H):
  b = list(input().split())
  a.append(b)
for i in range(2*H):
  for j in range(W):
    if j != W - 1:
      print(a[i//2][j],end="")
    else:
      print(a[i//2][j])

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
a = []
for i in range(H):
  b = list(input().split())
  a.append(b)
for i in range(2*H):
  for j in range(W):
    print(a[i//2][j],end="")
  print('')

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
a = []
for i in range(H):
  b = list(input().split())
  a.append(b)
c = []
for i in range(2*H):
  d = []
  for j in range(W):
    d.append(a[i//2][j])
  c.append(d)
print(c)

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
a = []
for i in range(H):
  b = list(input().split())
  a.append(b)
c = []
for i in range(2*H):
  d = []
  for j in range(W):
    d.append(a[(i + 1)//2][j])
  c.append(d)
print(c)

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())
a = []
for i in range(H):
  b = list(map(int, input().split()))
  a.append(b)
c = []
for i in range(2*H):
  d = []
  for j in range(W):
    d.append(a[(i + 1)//2][j])
  c.append(d)
print(c)

Submission status: Runtime Error

Solution code:
icase=0
if icase==0:
    w,h=map(int,input().split())
#    xy=[[1]*w for i in range(2*h)]
    for i in range(h):
        cij=input()
        print(cij)
        print(cij)

Submission status: Runtime Error

Solution code:
#include <stdio.h>
#include <math.h>

int main(void) {
	int h, w;
	char c[100][100];
	scanf("%d %d", &h, &w);
	for (int i = 0; i < h; ++i) {
		scanf("%s", c[i]);
	}
	for (int i = 0; i < h; ++i) {
		printf("%s\n", c[i]);
		printf("%s\n", c[i]);
	}

	return 0;
}

Submission status: Runtime Error

Solution code:
H,W=map(int, input().split())
C=["0" for k in range(W)]
for k in range(H):
    C[k]=input()
D=["0"for k in range(2*H)]
for k in range(H):
    D[2*k]=C[k]
    D[2*k+1]=C[k]
for k in range(2*H):
    print(D[k])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
h, w = map(int, input().split())
a = [list(str(input())) for _ in range(h)]
for i in range(2):
    print(''.join(a[i]))
    print(''.join(a[i]))

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
H, W = map(int, input())
for i in range(N):
  c = input()
  print(c)
  print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from sys import platform, stdin, setrecursionlimit

if platform =='ios':
    stdin=open('input.txt')
    
#------------------------------------#

def main():
    #setrecursionlimit(10**9)
    #n = int(stdin.readline()[:-1])   
    r = input()
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]
    #n = int(r)
    #a = r.split()
    #a,b,c = r.split()
    #a = list(map(int, r.split()))
    a,b = map(int, r.split())
    #a = [int(s[i]) for i in range(1, n+1)]
    #a = [list(map(int, r.split())) for i in range(1,n+1)]
    res = 0
  
    r = [input() for i in range(b)]
    
    for i in r:
    	print(i+"\n"+i)
    
    
if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

th = []

for i in p:
    for n in range(2):
        th.append(i)

print(th)

Submission status: Runtime Error

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

b = []
c =[]

for i in range(h):
    s = input()
    b.append(s)

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

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

Submission status: Runtime Error

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

for i in range(h)
print(" ".join(a[i]))
print(" ".join(a[i]))

Submission status: Runtime Error

Solution code:
data_num = [int(i) for i in input().split(" ")]
data = [input() for i in range(data_num[0])]
for i in data:
  	print(i)	
    print(i)

Submission status: Runtime Error

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

C = []

for _ in range(H):
    l = list(input()
    C.append(l)
D = []
for i in range(2*H):
    l = []
    for j in range(W):
        l.append(C[i//2][j])

    D.append(l)

for i in range(len(D)):
    print(*D[i],sep="")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

# キャンバスを初期化
pixel = [["."] * H for i in range(W)]

# 入力
for h in range(H):
    pixel[h] = list(input())

# 同じ行を2回繰り返して表示する
for h in range(H):
    print("".join(pixel[h]))
    print("".join(pixel[h]))

Submission status: Runtime Error

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

# キャンバスを初期化
#pixel = [["."] * H for i in range(W)]
pixel = []

# 入力
for h in range(H):
    pixel[h] = list(input())

# 同じ行を2回繰り返して表示する
for h in range(H):
    print("".join(pixel[h]))
    print("".join(pixel[h]))

Submission status: Runtime Error

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

pixel = [["."] * H for i in range(W)]

# 入力
for h in range(H):
    pixel[h] = list(input())

# 同じ行を2回繰り返して表示する
for h in range(H):
    print("".join(pixel[h]))
    print("".join(pixel[h]))

Submission status: Runtime Error

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

pixel = [["."] * H for i in range(W)]

# 入力
for h in range(H):
    pixel[h] = list(input())

# 同じ行を2回繰り返して表示する
for h in range(H):
    print("".join(pixel[h]))

Submission status: Runtime Error

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

pixel = [["."] * H for i in range(W)]

# 入力
for h in range(H):
    pixel[h] = list(input())

# 同じ行を2回繰り返して表示する
for h in range(H):
    print(pixel[h])
    print(pixel[h])

Submission status: Runtime Error

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

C = [str(input()) for _ in range(w)]

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

for i in range(H):
	c[2*i]=list(map(int,input().split()))
    c[2*i+1]=c[2*i]

print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
W,H = 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: Runtime Error

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

Submission status: Runtime Error

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

for i in range(W):
    C = input()
    print(C)
    print(C)

Submission status: Runtime Error

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

List=[input().split() for i in range(H)]
for j in range(H):
    print(List[j][0])
    print(List[j][0])

Submission status: Runtime Error

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

List=[list(input().split()) for i in range(H)]
for j in range(H):
    print(List[j][0])
    print(List[j][0])

Submission status: Runtime Error

Solution code:
9 20
.....***....***.....
....*...*..*...*....
...*.....**.....*...
...*.....*......*...
....*.....*....*....
.....**..*...**.....
.......*..*.*.......
........**.*........
.........**.........

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush, heapify
import math
import itertools
import random
 
# NO, PAY-PAY
#import numpy as np
#import statistics
#from statistics import mean, median,variance,stdev
 
INF = float('inf')
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    H,W = inputMap()
    C = []
    for i in range(H):
        c = inputList()
        C.append(c)
        
    for i in C:
        tmp = "".join(i)
        print(tmp)
        print(tmp)
    
if __name__ == "__main__":
	main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

out=[[0]*W]*(2*H)
print(image[2//2-1][0])
for i in range(2*H):
  for j in range(W):
    p=(i+2)//2-1
    out[i][j]=image[p][j]
out[1][0]=image[4//2-1][0]
print(out)

Submission status: Runtime Error

Solution code:
import numpy as np
n, m = list(map(int, input().split()))
a = [list(input()) for _ in range(n)]
for i in range(n):
	print("".join(arr[i]))
	print("".join(arr[i]))

Submission status: Runtime Error

Solution code:
import pandas as pd
n, m = list(map(int, input().split()))
a = [list(input()) for _ in range(n)]
df = pd.DataFrame(a)
df_v = pd.concat([df, df], axis=0)
arr = df_v.values.tolist()
for i in range(n*2):
	print("".join(arr[i]))

Submission status: Runtime Error

Solution code:
H, M = map(int, input().split())
src_image = [list(input().split() for i in range(H))]
for i in range(H):
    print(*src_image[i])
    print(*src_image[i])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

for j in ans:
    print(''.join(j))

Submission status: Runtime Error

Solution code:
from sys import stdin
H,W = [int(x) for x in stdin.readline().rstrip().split()]
C = []
for _ in range(N):
    C.append((input()))
for i in C:
    print(i)
    print(i)

Submission status: Runtime Error

Solution code:
C = open(0)
for i in C[1:]:
    print(i)
    print(i)

Submission status: Runtime Error

Solution code:
import sys
H,W = map(int,sys.stdin.readline())
C = open(0)
for i in C:
    print(i)
    print(i)

Submission status: Runtime Error

Solution code:
import sys

H, W = sys.stdin.readline().split()
C = set(map(int, sys.stdin))
for i in C:
    print(i)
    print(i)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
H,W = map(int,input().split())
C = list()
C = set(map(int, sys.stdin))
for i in C:
    print(C[i])
    print(C[i])

Submission status: Runtime Error

Solution code:
import sys
H,W = map(int,input().split())
C = set(map(int, sys.stdin))
for i in C:
    print(C[i])
    print(C[i])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for i in range(W):
    c = input()
    print(c + '\n' + c)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

def solve(H, W, C):
    for i in range(2*H):
        for j in C[i]:
            print(j)
            print(j)
        

if __name__ == '__main__':
    H, W = map(int, input().split())
    C = [[input()] for i in range(H)]
  
    solve(H, W, C)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def thin(H: int, W: int, C: list)->list:
    return [[C[h//2][w] for w in range(W)] for h in range(2*H)]


if __name__ == "__main__":
    H = 0
    H, W = map(int, input().split())
    C = [input() for _ in range(H)]
    ans = thin(H, W, C)
    print('\n'.join(ans))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
h,w = map(int, input().split())
listA = [input() for i in range(h)]
for i in range(h):
  print(listA[i-1]\nlistA[i-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
h,w = map(int, input().split())
listA = []
while True:
  try:
    listA.append(list(map(int,input().split())))
  except:
    break;
for i in range(n):
  print(listA[i-1]"\n"listA[i-1])

Submission status: Runtime Error

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つ
h,w= (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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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) // 2])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from sys import stdin

n, m = int(stdin.readline().rstrip().split())
data = [stdin.readline().rstrip().split() for _ in range(n)]

for i in range(n):
    print(data[i]\n)
    print(data[i])

Submission status: Runtime Error

Solution code:
from sys import stdin

n, m = int(stdin.readline().rstrip())
data = [stdin.readline().rstrip().split() for _ in range(n)]

for i in range(n):
    print(data[i]\n)
    print(data[i])

Submission status: Runtime Error

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: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=input().split();for _ in[0]*int(a):print(input()*2)

Submission status: Runtime Error

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

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