bef, n, aft = gets, gets.to_i, gets o, x = bef.count('o'), bef.count('x') if bef.count('o') != aft.count('o') puts :SUCCESS exit end if o == 3 || o == 0 puts :FAILURE exit end if n==0 && bef!=aft puts :SUCCESS exit end sign = o