Logic

Work it out.