I Got The Desired Output: Grandfather Grandmother Still Two Condition Are Not Fulfilled.