Six X's have to be placed in the square of given figure such that each row contains at least one X. Then number of ways doing so are