codigo semi-final