Albert can only be sure Bernard is stuck if his month has no date that appears just once, so it isn’t May, with the 19th, or June, with the 18th. Bernard now knowing means his day isn’t the 14th, which is in both July and August. Albert then knowing means his month has one date left, and only July does.