PM expresses grief over train accident