fork download
  1. s = input().strip()
  2. a = list(s)
  3. for i in range(1, len(a)):
  4. value = a[i]
  5. j = i - 1
  6. while j >= 0 and a[j] > value:
  7. a[j + 1] = a[j]
  8. j -= 1
  9. a[j + 1] = value
  10. cnt = 1
  11. for i in range(1, len(a)):
  12. if a[i] != a[i - 1]:
  13. cnt += 1
  14.  
  15. if cnt == 26:
  16. print("ia")
  17. else:
  18. print("joq")
Success #stdin #stdout 0.08s 14148KB
stdin
dfrfrknikmceockemihngfinkdde
stdout
joq