island_num = gets.to_i bridge_num = island_num - 1 connection = Hash.new(0) bridge_num.times do islands = gets.split connection[islands[0]] += 1 connection[islands[1]] += 1 end puts(connection.keys.length == island_num ? "Bob" : "Alice")