Both of these islands have airports. Just fly to Athens first and then catch a connecting flight to either of the two islands from there.