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 puts 'FAILURE' exit end sign = o