Fred has two pens ( red and green). He wants to write the word "YES" and "NO" with both pens. In how many ways can he write both words with both pens?