Obama and Castro greeted by Cuban military officers