output_description: Print the string obtained by repeating the string `ACL` K times and
  concatenating them.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      K
attempt: n, m = map(int, input().split())
  towns = [0] * n
  cnt = 1
  
  
  def rewr(x, y, z):
      if x == y:
          return z
      else:
          return x
  
  
  for i in range(m):
      a, b = map(int, input().split())
      a -= 1
      b -= 1
      if towns[a] == 0 and towns[b] == 0:
          towns[a] = cnt
          towns[b] = cnt
          cnt += 1
      elif towns[a] > 0 and towns[b] == 0:
          towns[b] = towns[a]
      elif towns[b] > 0 and towns[a] == 0:
          towns[a] = towns[b]
      elif towns[a] > 0 and towns[b] > 0:
          if towns[a] != towns[b]:
              min_no = min(towns[a], towns[b])
              max_no = max(towns[a], towns[b])
              towns = [rewr(twn, max_no, min_no) for twn in towns]
      else:
          pass
          # print('pass')
  
  rslt = 0
  # print(towns)
  rslt += max(towns) - 1
  rslt += towns.count(0)
  print(rslt)
  
problem_description: Statement
  
  You are given an integer K. Print the string obtained by repeating the string
  `ACL` K times and concatenating them.
  
  For example, if K = 3, print `ACLACLACL`.
samples: [{"input": "3", "output": "ACLACLACL"}]