Quimestral logic