SowhenJosephcametohisbrothers,theytookoffhislongcoatwhichhehadon;

Please segment the words:
So when Joseph came to his brothers, they took off his long coat which he had on;