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 sign = o