import java.util.*;
class Ideone {
public static void main
(String[] args
) { ArrayList<String> houses = new ArrayList<String>();
houses.add("casa 1");
houses.add("casa 2");
houses.add("casa 1");
houses.add("casa 3");
ArrayList<String> aux = new ArrayList<String>();
if (!aux.contains(item)) {
aux.add(item);
}
}
houses = aux;
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwoKY2xhc3MgSWRlb25lIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKQl7CgkJQXJyYXlMaXN0PFN0cmluZz4gaG91c2VzID0gbmV3IEFycmF5TGlzdDxTdHJpbmc+KCk7CgkJaG91c2VzLmFkZCgiY2FzYSAxIik7CgkJaG91c2VzLmFkZCgiY2FzYSAyIik7CgkJaG91c2VzLmFkZCgiY2FzYSAxIik7CgkJaG91c2VzLmFkZCgiY2FzYSAzIik7CgkgICAgQXJyYXlMaXN0PFN0cmluZz4gYXV4ID0gbmV3IEFycmF5TGlzdDxTdHJpbmc+KCk7CgkgICAgZm9yIChTdHJpbmcgaXRlbSA6IGhvdXNlcykgewoJICAgICAgICBpZiAoIWF1eC5jb250YWlucyhpdGVtKSkgewoJICAgICAgICAgICAgYXV4LmFkZChpdGVtKTsKCSAgICAgICAgfQoJICAgIH0KCSAgICBob3VzZXMgPSBhdXg7CgkgICAgZm9yIChTdHJpbmcgaXRlbSA6IGhvdXNlcykgewoJICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oaXRlbSk7CgkgICAgfQoJfQp9