Algorithm (Who owns Spain?)