output_description: Print the extended image.
  
  * * *
input_description: 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}
attempt: #
  # 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()
  
problem_description: 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).
samples: [{"input": "2 2\n    *.\n    .*", "output": "*.\n    *.\n    .*\n    .*\n    \n\n* * *"}, {"input": "1 4\n    ***.", "output": "***.\n    ***.\n    \n\n* * *"}, {"input": "9 20\n    .....***....***.....\n    ....*...*..*...*....\n    ...*.....**.....*...\n    ...*.....*......*...\n    ....*.....*....*....\n    .....**..*...**.....\n    .......*..*.*.......\n    ........**.*........\n    .........**.........", "output": ".....***....***.....\n    .....***....***.....\n    ....*...*..*...*....\n    ....*...*..*...*....\n    ...*.....**.....*...\n    ...*.....**.....*...\n    ...*.....*......*...\n    ...*.....*......*...\n    ....*.....*....*....\n    ....*.....*....*....\n    .....**..*...**.....\n    .....**..*...**.....\n    .......*..*.*.......\n    .......*..*.*.......\n    ........**.*........\n    ........**.*........\n    .........**.........\n    .........**........."}]