First homework, yay!

That is the logical vector you want.  Can you get it by writing a short statement with a comparison operator?