
def license_plate(s, n):
  s = s.upper().replace("-","")
  res = []
  while len(s) >= n:
    res.append(s[-n:])
    s = s[:-n]
  if len(s) > 0:
    res.append(s)
  return "-".join(res[::-1])


6d14d710a4287145a57544d740a3903279655d5f
<mask token>

def license_plate(s, n):
    s = s.upper().replace('-', '')
    res = []
    while len(s) >= n:
        res.append(s[-n:])
        s = s[:-n]
    if len(s) > 0:
        res.append(s)
    return '-'.join(res[::-1])


def license_plate(s, n):
  s = s.upper().replace("-","")
  res = []
  while len(s) >= n:
    res.append(s[-n:])
    s = s[:-n]
  if len(s) > 0:
    res.append(s)
  return "-".join(res[::-1])

