← Home
For problem statement at 0-999/800-899/860-869/867/problemA.txt this is a correct solution, but verifier at 0-999/800-899/860-869/867/verifierA.go ends with All 100 tests passed can you fix the verifier? ```go
package main

import "fmt"

func main() {
	var n int
	fmt.Scan(&n)
	var s string
	fmt.Scan(&s)
	sf := 0
	fs := 0
	for i := 0; i < n-1; i++ {
		if s[i] == 'S' && s[i+1] == 'F' {
			sf++
		} else if s[i] == 'F' && s[i+1] == 'S' {
			fs++
		}
	}
	if sf > fs {
		fmt.Println("YES")
	} else {
		fmt.Println("NO")
	}
}
```