IF message contains FREE  THEN
     type = spam
 IF message does not contain FREE  AND
     IF message contains call  AND
         IF message contains customer  THEN
             type = spam
         IF message does not contain customer  AND
             IF message contains rate  THEN
                 type = spam
             IF message does not contain rate  AND
                 IF message contains awarded  THEN
                     type = spam
                 IF message does not contain awarded  AND
                     IF message contains collection  THEN
                         type = spam
                     IF message does not contain collection  AND
                         IF message contains mobile  THEN
                             type = spam
                         IF message does not contain mobile  AND
                             IF message contains line  THEN
                                 type = spam
                             IF message does not contain line  AND
                                 IF message contains time  AND
                                     IF message contains baby  THEN
                                         type = ham
                                     IF message does not contain baby  THEN
                                         type = spam
                                 IF message does not contain time  AND
                                     IF message contains message  AND
                                         IF message contains didnt  THEN
                                             type = ham
                                         IF message does not contain didnt  THEN
                                             type = spam
                                     IF message does not contain message  AND
                                         IF message contains visit  THEN
                                             type = spam
                                         IF message does not contain visit  THEN
                                             type = ham
     IF message does not contain call  AND
         IF message contains Call  AND
             IF message contains URGENT  THEN
                 type = spam
             IF message does not contain URGENT  AND
                 IF message contains 04  THEN
                     type = spam
                 IF message does not contain 04  AND
                     IF message contains 100  THEN
                         type = spam
                     IF message does not contain 100  AND
                         IF message contains term  THEN
                             type = spam
                         IF message does not contain term  AND
                             IF message contains gettin  THEN
                                 type = spam
                             IF message does not contain gettin  AND
                                 IF message contains message  THEN
                                     type = spam
                                 IF message does not contain message  THEN
                                     type = ham
         IF message does not contain Call  AND
             IF message contains txt  AND
                 IF message contains time  THEN
                     type = ham
                 IF message does not contain time  THEN
                     type = spam
             IF message does not contain txt  AND
                 IF message contains www  THEN
                     type = spam
                 IF message does not contain www  AND
                     IF message contains text  AND
                         IF message contains time  THEN
                             type = ham
                         IF message does not contain time  AND
                             IF message contains phone  THEN
                                 type = ham
                             IF message does not contain phone  AND
                                 IF message contains shit  THEN
                                     type = ham
                                 IF message does not contain shit  AND
                                     IF message contains Yes  THEN
                                         type = ham
                                     IF message does not contain Yes  THEN
                                         type = spam
                     IF message does not contain text  AND
                         IF message contains 1000s  THEN
                             type = spam
                         IF message does not contain 1000s  AND
                             IF message contains 50  THEN
                                 type = spam
                             IF message does not contain 50  AND
                                 IF message contains 150p  THEN
                                     type = spam
                                 IF message does not contain 150p  AND
                                     IF message contains http  THEN
                                         type = spam
                                     IF message does not contain http  AND
                                         IF message contains Free  THEN
                                             type = spam
                                         IF message does not contain Free  AND
                                             IF message contains 1000  THEN
                                                 type = spam
                                             IF message does not contain 1000  AND
                                                 IF message contains rate  THEN
                                                     type = spam
                                                 IF message does not contain rate  AND
                                                     IF message contains NAME  THEN
                                                         type = spam
                                                     IF message does not contain NAME  AND
                                                         IF message contains Cost  THEN
                                                             type = spam
                                                         IF message does not contain Cost  AND
                                                             IF message contains currently  THEN
                                                                 type = spam
                                                             IF message does not contain currently  AND
                                                                 IF message contains story  THEN
                                                                     type = ham
                                                                 IF message does not contain story  AND
                                                                     IF message contains gt  THEN
                                                                         type = ham
                                                                     IF message does not contain gt  AND
                                                                         IF message contains lor  THEN
                                                                             type = ham
                                                                         IF message does not contain lor  AND
                                                                             IF message contains day  THEN
                                                                                 type = ham
                                                                             IF message does not contain day  AND
                                                                                 IF message contains time  THEN
                                                                                     type = ham
                                                                                 IF message does not contain time  AND
                                                                                     IF message contains ur  THEN
                                                                                         type = ham
                                                                                     IF message does not contain ur  AND
                                                                                         IF message contains home  THEN
                                                                                             type = ham
                                                                                         IF message does not contain home  AND
                                                                                             IF message contains night  THEN
                                                                                                 type = ham
                                                                                             IF message does not contain night  AND
                                                                                                 IF message contains Ok  THEN
                                                                                                     type = ham
                                                                                                 IF message does not contain Ok  AND
                                                                                                     IF message contains love  THEN
                                                                                                         type = ham
                                                                                                     IF message does not contain love  AND
                                                                                                         IF message contains dont  THEN
                                                                                                             type = ham
                                                                                                         IF message does not contain dont  AND
                                                                                                             IF message contains wat  THEN
                                                                                                                 type = ham
                                                                                                             IF message does not contain wat  AND
                                                                                                                 IF message contains phone  THEN
                                                                                                                     type = ham
                                                                                                                 IF message does not contain phone  AND
                                                                                                                     IF message contains Oh  THEN
                                                                                                                         type = ham
                                                                                                                     IF message does not contain Oh  AND
                                                                                                                         IF message contains trying  THEN
                                                                                                                             type = ham
                                                                                                                         IF message does not contain trying  AND
                                                                                                                             IF message contains waiting  THEN
                                                                                                                                 type = ham
                                                                                                                             IF message does not contain waiting  AND
                                                                                                                                 IF message contains Hey  THEN
                                                                                                                                     type = ham
                                                                                                                                 IF message does not contain Hey  AND
                                                                                                                                     IF message contains Hi  THEN
                                                                                                                                         type = ham
                                                                                                                                     IF message does not contain Hi  AND
                                                                                                                                         IF message contains amp  THEN
                                                                                                                                             type = ham
                                                                                                                                         IF message does not contain amp  AND
                                                                                                                                             IF message contains da  THEN
                                                                                                                                                 type = ham
                                                                                                                                             IF message does not contain da  AND
                                                                                                                                                 IF message contains send  THEN
                                                                                                                                                     type = ham
                                                                                                                                                 IF message does not contain send  AND
                                                                                                                                                     IF message contains ah  THEN
                                                                                                                                                         type = ham
                                                                                                                                                     IF message does not contain ah  AND
                                                                                                                                                         IF message contains drive  THEN
                                                                                                                                                             type = ham
                                                                                                                                                         IF message does not contain drive  AND
                                                                                                                                                             IF message contains month  THEN
                                                                                                                                                                 type = ham
                                                                                                                                                             IF message does not contain month  AND
                                                                                                                                                                 IF message contains guys  THEN
                                                                                                                                                                     type = ham
                                                                                                                                                                 IF message does not contain guys  AND
                                                                                                                                                                     IF message contains people  THEN
                                                                                                                                                                         type = ham
                                                                                                                                                                     IF message does not contain people  AND
                                                                                                                                                                         IF message contains week  THEN
                                                                                                                                                                             type = ham
                                                                                                                                                                         IF message does not contain week  AND
                                                                                                                                                                             IF message contains mind  THEN
                                                                                                                                                                                 type = ham
                                                                                                                                                                             IF message does not contain mind  AND
                                                                                                                                                                                 IF message contains buy  THEN
                                                                                                                                                                                     type = ham
                                                                                                                                                                                 IF message does not contain buy  AND
                                                                                                                                                                                     IF message contains tomorrow  THEN
                                                                                                                                                                                         type = ham
                                                                                                                                                                                     IF message does not contain tomorrow  AND
                                                                                                                                                                                         IF message contains sent  THEN
                                                                                                                                                                                             type = ham
                                                                                                                                                                                         IF message does not contain sent  AND
                                                                                                                                                                                             IF message contains Dear  THEN
                                                                                                                                                                                                 type = ham
                                                                                                                                                                                             IF message does not contain Dear  AND
                                                                                                                                                                                                 IF message contains hope  THEN
                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                 IF message does not contain hope  AND
                                                                                                                                                                                                     IF message contains message  THEN
                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                     IF message does not contain message  AND
                                                                                                                                                                                                         IF message contains happen  THEN
                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                         IF message does not contain happen  AND
                                                                                                                                                                                                             IF message contains happy  THEN
                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                             IF message does not contain happy  AND
                                                                                                                                                                                                                 IF message contains TIME  THEN
                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                 IF message does not contain TIME  AND
                                                                                                                                                                                                                     IF message contains leave  THEN
                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                     IF message does not contain leave  AND
                                                                                                                                                                                                                         IF message contains ll  THEN
                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                         IF message does not contain ll  AND
                                                                                                                                                                                                                             IF message contains live  THEN
                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                             IF message does not contain live  AND
                                                                                                                                                                                                                                 IF message contains Yo  THEN
                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                 IF message does not contain Yo  AND
                                                                                                                                                                                                                                     IF message contains decided  THEN
                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                     IF message does not contain decided  AND
                                                                                                                                                                                                                                         IF message contains yeah  THEN
                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                         IF message does not contain yeah  AND
                                                                                                                                                                                                                                             IF message contains friend  THEN
                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                             IF message does not contain friend  AND
                                                                                                                                                                                                                                                 IF message contains free  THEN
                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                 IF message does not contain free  AND
                                                                                                                                                                                                                                                     IF message contains Haha  THEN
                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                     IF message does not contain Haha  AND
                                                                                                                                                                                                                                                         IF message contains please  THEN
                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                         IF message does not contain please  AND
                                                                                                                                                                                                                                                             IF message contains Thanks  THEN
                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                             IF message does not contain Thanks  AND
                                                                                                                                                                                                                                                                 IF message contains heading  THEN
                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                 IF message does not contain heading  AND
                                                                                                                                                                                                                                                                     IF message contains princess  THEN
                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                     IF message does not contain princess  AND
                                                                                                                                                                                                                                                                         IF message contains ü  THEN
                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                         IF message does not contain ü  AND
                                                                                                                                                                                                                                                                             IF message contains car  THEN
                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                             IF message does not contain car  AND
                                                                                                                                                                                                                                                                                 IF message contains worries  THEN
                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                 IF message does not contain worries  AND
                                                                                                                                                                                                                                                                                     IF message contains Dude  THEN
                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                     IF message does not contain Dude  AND
                                                                                                                                                                                                                                                                                         IF message contains lot  THEN
                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                         IF message does not contain lot  AND
                                                                                                                                                                                                                                                                                             IF message contains website  THEN
                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                             IF message does not contain website  AND
                                                                                                                                                                                                                                                                                                 IF message contains unless  THEN
                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                 IF message does not contain unless  AND
                                                                                                                                                                                                                                                                                                     IF message contains shop  THEN
                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                     IF message does not contain shop  AND
                                                                                                                                                                                                                                                                                                         IF message contains means  THEN
                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                         IF message does not contain means  AND
                                                                                                                                                                                                                                                                                                             IF message contains looking  THEN
                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                             IF message does not contain looking  AND
                                                                                                                                                                                                                                                                                                                 IF message contains 2NITE  THEN
                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                 IF message does not contain 2NITE  AND
                                                                                                                                                                                                                                                                                                                     IF message contains yesterday  THEN
                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                     IF message does not contain yesterday  AND
                                                                                                                                                                                                                                                                                                                         IF message contains start  THEN
                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                         IF message does not contain start  AND
                                                                                                                                                                                                                                                                                                                             IF message contains specific  THEN
                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                             IF message does not contain specific  AND
                                                                                                                                                                                                                                                                                                                                 IF message contains wanna  THEN
                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                 IF message does not contain wanna  AND
                                                                                                                                                                                                                                                                                                                                     IF message contains xxx  THEN
                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                     IF message does not contain xxx  AND
                                                                                                                                                                                                                                                                                                                                         IF message contains Lol  THEN
                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                         IF message does not contain Lol  AND
                                                                                                                                                                                                                                                                                                                                             IF message contains carlos  THEN
                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                             IF message does not contain carlos  AND
                                                                                                                                                                                                                                                                                                                                                 IF message contains LUV  THEN
                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                 IF message does not contain LUV  AND
                                                                                                                                                                                                                                                                                                                                                     IF message contains tho  THEN
                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                     IF message does not contain tho  AND
                                                                                                                                                                                                                                                                                                                                                         IF message contains class  THEN
                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                         IF message does not contain class  AND
                                                                                                                                                                                                                                                                                                                                                             IF message contains Pls  THEN
                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                             IF message does not contain Pls  AND
                                                                                                                                                                                                                                                                                                                                                                 IF message contains heart  THEN
                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain heart  AND
                                                                                                                                                                                                                                                                                                                                                                     IF message contains Love  THEN
                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain Love  AND
                                                                                                                                                                                                                                                                                                                                                                         IF message contains album  THEN
                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain album  AND
                                                                                                                                                                                                                                                                                                                                                                             IF message contains Yup  THEN
                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain Yup  AND
                                                                                                                                                                                                                                                                                                                                                                                 IF message contains Sac  THEN
                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain Sac  AND
                                                                                                                                                                                                                                                                                                                                                                                     IF message contains oh  THEN
                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain oh  AND
                                                                                                                                                                                                                                                                                                                                                                                         IF message contains details  THEN
                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain details  AND
                                                                                                                                                                                                                                                                                                                                                                                             IF message contains Dont  THEN
                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain Dont  AND
                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains left  THEN
                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain left  AND
                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains account  THEN
                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain account  AND
                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains slept  THEN
                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain slept  AND
                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains 100  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain 100  AND
                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains teach  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain teach  AND
                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains miles  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain miles  AND
                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains journey  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain journey  AND
                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains course  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain course  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains ill  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain ill  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains project  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain project  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains crazy  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain crazy  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains Im  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain Im  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains Yeah  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain Yeah  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains Okie  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain Okie  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains Juz  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain Juz  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains told  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain told  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains wit  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain wit  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains hurt  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain hurt  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains exactly  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain exactly  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains exam  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain exam  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains pay  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain pay  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains Congrats  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain Congrats  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains wil  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain wil  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains Happy  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain Happy  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains vomit  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain vomit  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains cool  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain cool  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains liao  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain liao  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains college  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain college  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains sell  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain sell  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains cake  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain cake  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains scream  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain scream  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains holiday  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain holiday  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains sort  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain sort  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains ice  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain ice  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains yest  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain yest  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains Tell  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain Tell  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains seen  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain seen  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains mom  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain mom  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains busy  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain busy  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains dead  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain dead  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains wana  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain wana  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains sleep  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain sleep  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains system  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain system  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains wot  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain wot  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains bout  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain bout  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains available  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain available  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains idea  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain idea  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains romantic  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain romantic  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains spend  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain spend  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains luv  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain luv  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains tough  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain tough  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains fine  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain fine  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains win  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain win  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains tonight  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain tonight  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains pub  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain pub  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains huge  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain huge  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains brother  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain brother  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains hai  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain hai  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains town  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain town  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains Babe  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain Babe  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains care  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain care  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains whenever  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain whenever  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains food  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain food  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains til  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain til  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains late  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain late  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains thanks  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain thanks  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains deep  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain deep  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains dun  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain dun  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains dinner  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain dinner  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains pls  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain pls  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains bags  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain bags  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains bit  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain bit  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains house  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain house  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains apparently  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain apparently  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains dear  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain dear  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham