import sequtils, strutils let n = stdin.readLine.parseInt s = stdin.readLine var ans = 0 for i in 0..