 IF message contains FREE  THEN
     type = spam
 IF message does not contain FREE  AND
     IF message contains call  AND
         IF message contains I  AND
             IF message contains miss  THEN
                 type = spam
             IF message does not contain miss  THEN
                 type = ham
         IF message does not contain I  AND
             IF message contains customer  THEN
                 type = spam
             IF message does not contain customer  AND
                 IF message contains T  THEN
                     type = spam
                 IF message does not contain T  AND
                     IF message contains rate  THEN
                         type = spam
                     IF message does not contain rate  AND
                         IF message contains You  AND
                             IF message contains Or  THEN
                                 type = ham
                             IF message does not contain Or  AND
                                 IF message contains told  THEN
                                     type = ham
                                 IF message does not contain told  THEN
                                     type = spam
                         IF message does not contain You  AND
                             IF message contains 2  THEN
                                 type = spam
                             IF message does not contain 2  AND
                                 IF message contains Xmas  THEN
                                     type = spam
                                 IF message does not contain Xmas  AND
                                     IF message contains www  THEN
                                         type = spam
                                     IF message does not contain www  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 Expires  THEN
                     type = spam
                 IF message does not contain Expires  AND
                     IF message contains 1  THEN
                         type = spam
                     IF message does not contain 1  AND
                         IF message contains I  THEN
                             type = ham
                         IF message does not contain I  AND
                             IF message contains ok  THEN
                                 type = ham
                             IF message does not contain ok  THEN
                                 type = spam
         IF message does not contain Call  AND
             IF message contains txt  AND
                 IF message contains finish  THEN
                     type = ham
                 IF message does not contain finish  THEN
                     type = spam
             IF message does not contain txt  AND
                 IF message contains Txt  THEN
                     type = spam
                 IF message does not contain Txt  AND
                     IF message contains text  AND
                         IF message contains I  THEN
                             type = ham
                         IF message does not contain I  AND
                             IF message contains If  THEN
                                 type = ham
                             IF message does not contain If  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 cash  AND
                             IF message contains round  THEN
                                 type = ham
                             IF message does not contain round  THEN
                                 type = spam
                         IF message does not contain cash  AND
                             IF message contains To  THEN
                                 type = spam
                             IF message does not contain To  AND
                                 IF message contains tone  THEN
                                     type = spam
                                 IF message does not contain tone  AND
                                     IF message contains rate  THEN
                                         type = spam
                                     IF message does not contain rate  AND
                                         IF message contains http  THEN
                                             type = spam
                                         IF message does not contain http  AND
                                             IF message contains 50  THEN
                                                 type = spam
                                             IF message does not contain 50  AND
                                                 IF message contains co  THEN
                                                     type = spam
                                                 IF message does not contain co  AND
                                                     IF message contains 10p  THEN
                                                         type = spam
                                                     IF message does not contain 10p  AND
                                                         IF message contains Cost  THEN
                                                             type = spam
                                                         IF message does not contain Cost  AND
                                                             IF message contains Latest  THEN
                                                                 type = spam
                                                             IF message does not contain Latest  AND
                                                                 IF message contains story  THEN
                                                                     type = ham
                                                                 IF message does not contain story  AND
                                                                     IF message contains I  THEN
                                                                         type = ham
                                                                     IF message does not contain I  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 2  THEN
                                                                                     type = ham
                                                                                 IF message does not contain 2  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 Ok  THEN
                                                                                                 type = ham
                                                                                             IF message does not contain Ok  AND
                                                                                                 IF message contains U  THEN
                                                                                                     type = ham
                                                                                                 IF message does not contain U  AND
                                                                                                     IF message contains Just  THEN
                                                                                                         type = ham
                                                                                                     IF message does not contain Just  AND
                                                                                                         IF message contains What  THEN
                                                                                                             type = ham
                                                                                                         IF message does not contain What  AND
                                                                                                             IF message contains That  THEN
                                                                                                                 type = ham
                                                                                                             IF message does not contain That  AND
                                                                                                                 IF message contains You  THEN
                                                                                                                     type = ham
                                                                                                                 IF message does not contain You  AND
                                                                                                                     IF message contains No  THEN
                                                                                                                         type = ham
                                                                                                                     IF message does not contain No  AND
                                                                                                                         IF message contains How  THEN
                                                                                                                             type = ham
                                                                                                                         IF message does not contain How  AND
                                                                                                                             IF message contains Hi  THEN
                                                                                                                                 type = ham
                                                                                                                             IF message does not contain Hi  AND
                                                                                                                                 IF message contains home  THEN
                                                                                                                                     type = ham
                                                                                                                                 IF message does not contain home  AND
                                                                                                                                     IF message contains ah  THEN
                                                                                                                                         type = ham
                                                                                                                                     IF message does not contain ah  AND
                                                                                                                                         IF message contains talk  THEN
                                                                                                                                             type = ham
                                                                                                                                         IF message does not contain talk  AND
                                                                                                                                             IF message contains Love  THEN
                                                                                                                                                 type = ham
                                                                                                                                             IF message does not contain Love  AND
                                                                                                                                                 IF message contains Have  THEN
                                                                                                                                                     type = ham
                                                                                                                                                 IF message does not contain Have  AND
                                                                                                                                                     IF message contains So  THEN
                                                                                                                                                         type = ham
                                                                                                                                                     IF message does not contain So  AND
                                                                                                                                                         IF message contains My  THEN
                                                                                                                                                             type = ham
                                                                                                                                                         IF message does not contain My  AND
                                                                                                                                                             IF message contains waiting  THEN
                                                                                                                                                                 type = ham
                                                                                                                                                             IF message does not contain waiting  AND
                                                                                                                                                                 IF message contains Haha  THEN
                                                                                                                                                                     type = ham
                                                                                                                                                                 IF message does not contain Haha  AND
                                                                                                                                                                     IF message contains late  THEN
                                                                                                                                                                         type = ham
                                                                                                                                                                     IF message does not contain late  AND
                                                                                                                                                                         IF message contains And  THEN
                                                                                                                                                                             type = ham
                                                                                                                                                                         IF message does not contain And  AND
                                                                                                                                                                             IF message contains doing  THEN
                                                                                                                                                                                 type = ham
                                                                                                                                                                             IF message does not contain doing  AND
                                                                                                                                                                                 IF message contains Are  THEN
                                                                                                                                                                                     type = ham
                                                                                                                                                                                 IF message does not contain Are  AND
                                                                                                                                                                                     IF message contains pls  THEN
                                                                                                                                                                                         type = ham
                                                                                                                                                                                     IF message does not contain pls  AND
                                                                                                                                                                                         IF message contains ll  THEN
                                                                                                                                                                                             type = ham
                                                                                                                                                                                         IF message does not contain ll  AND
                                                                                                                                                                                             IF message contains heart  THEN
                                                                                                                                                                                                 type = ham
                                                                                                                                                                                             IF message does not contain heart  AND
                                                                                                                                                                                                 IF message contains ur  THEN
                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                 IF message does not contain ur  AND
                                                                                                                                                                                                     IF message contains trying  THEN
                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                     IF message does not contain trying  AND
                                                                                                                                                                                                         IF message contains set  THEN
                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                         IF message does not contain set  AND
                                                                                                                                                                                                             IF message contains Lol  THEN
                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                             IF message does not contain Lol  AND
                                                                                                                                                                                                                 IF message contains Do  THEN
                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                 IF message does not contain Do  AND
                                                                                                                                                                                                                     IF message contains When  THEN
                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                     IF message does not contain When  AND
                                                                                                                                                                                                                         IF message contains morning  THEN
                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                         IF message does not contain morning  AND
                                                                                                                                                                                                                             IF message contains re  THEN
                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                             IF message does not contain re  AND
                                                                                                                                                                                                                                 IF message contains dear  THEN
                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                 IF message does not contain dear  AND
                                                                                                                                                                                                                                     IF message contains The  THEN
                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                     IF message does not contain The  AND
                                                                                                                                                                                                                                         IF message contains Oh  THEN
                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                         IF message does not contain Oh  AND
                                                                                                                                                                                                                                             IF message contains wat  THEN
                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                             IF message does not contain wat  AND
                                                                                                                                                                                                                                                 IF message contains im  THEN
                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                 IF message does not contain im  AND
                                                                                                                                                                                                                                                     IF message contains da  THEN
                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                     IF message does not contain da  AND
                                                                                                                                                                                                                                                         IF message contains Nothing  THEN
                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                         IF message does not contain Nothing  AND
                                                                                                                                                                                                                                                             IF message contains Thanks  THEN
                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                             IF message does not contain Thanks  AND
                                                                                                                                                                                                                                                                 IF message contains left  THEN
                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                 IF message does not contain left  AND
                                                                                                                                                                                                                                                                     IF message contains Am  THEN
                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                     IF message does not contain Am  AND
                                                                                                                                                                                                                                                                         IF message contains means  THEN
                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                         IF message does not contain means  AND
                                                                                                                                                                                                                                                                             IF message contains message  THEN
                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                             IF message does not contain message  AND
                                                                                                                                                                                                                                                                                 IF message contains K  THEN
                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                 IF message does not contain K  AND
                                                                                                                                                                                                                                                                                     IF message contains please  THEN
                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                     IF message does not contain please  AND
                                                                                                                                                                                                                                                                                         IF message contains Is  THEN
                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                         IF message does not contain Is  AND
                                                                                                                                                                                                                                                                                             IF message contains Where  THEN
                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                             IF message does not contain Where  AND
                                                                                                                                                                                                                                                                                                 IF message contains Ü  THEN
                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                 IF message does not contain Ü  AND
                                                                                                                                                                                                                                                                                                     IF message contains Also  THEN
                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                     IF message does not contain Also  AND
                                                                                                                                                                                                                                                                                                         IF message contains tomorrow  THEN
                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                         IF message does not contain tomorrow  AND
                                                                                                                                                                                                                                                                                                             IF message contains Yes  THEN
                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                             IF message does not contain Yes  AND
                                                                                                                                                                                                                                                                                                                 IF message contains Since  THEN
                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                 IF message does not contain Since  AND
                                                                                                                                                                                                                                                                                                                     IF message contains month  THEN
                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                     IF message does not contain month  AND
                                                                                                                                                                                                                                                                                                                         IF message contains Even  THEN
                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                         IF message does not contain Even  AND
                                                                                                                                                                                                                                                                                                                             IF message contains comp  THEN
                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                             IF message does not contain comp  AND
                                                                                                                                                                                                                                                                                                                                 IF message contains NOT  THEN
                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                 IF message does not contain NOT  AND
                                                                                                                                                                                                                                                                                                                                     IF message contains walk  THEN
                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                     IF message does not contain walk  AND
                                                                                                                                                                                                                                                                                                                                         IF message contains Or  THEN
                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                         IF message does not contain Or  AND
                                                                                                                                                                                                                                                                                                                                             IF message contains dont  THEN
                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                             IF message does not contain dont  AND
                                                                                                                                                                                                                                                                                                                                                 IF message contains temp  THEN
                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                 IF message does not contain temp  AND
                                                                                                                                                                                                                                                                                                                                                     IF message contains cum  THEN
                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                     IF message does not contain cum  AND
                                                                                                                                                                                                                                                                                                                                                         IF message contains rice  THEN
                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                         IF message does not contain rice  AND
                                                                                                                                                                                                                                                                                                                                                             IF message contains Okie  THEN
                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                             IF message does not contain Okie  AND
                                                                                                                                                                                                                                                                                                                                                                 IF message contains crazy  THEN
                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain crazy  AND
                                                                                                                                                                                                                                                                                                                                                                     IF message contains told  THEN
                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain told  AND
                                                                                                                                                                                                                                                                                                                                                                         IF message contains Why  THEN
                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain Why  AND
                                                                                                                                                                                                                                                                                                                                                                             IF message contains Hmm  THEN
                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain Hmm  AND
                                                                                                                                                                                                                                                                                                                                                                                 IF message contains Well  THEN
                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain Well  AND
                                                                                                                                                                                                                                                                                                                                                                                     IF message contains tho  THEN
                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain tho  AND
                                                                                                                                                                                                                                                                                                                                                                                         IF message contains IS  THEN
                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain IS  AND
                                                                                                                                                                                                                                                                                                                                                                                             IF message contains As  THEN
                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain As  AND
                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains bags  THEN
                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain bags  AND
                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains hai  THEN
                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain hai  AND
                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains match  THEN
                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain match  AND
                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains romantic  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain romantic  AND
                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains website  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain website  AND
                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains ready  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain ready  AND
                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains drive  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain drive  AND
                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains attend  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain attend  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains Dear  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain Dear  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains There  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain There  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains tonight  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain tonight  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains Sac  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain Sac  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains Hey  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain Hey  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains lar  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain lar  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains afternoon  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain afternoon  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains lot  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain lot  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains dinner  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain dinner  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains Wish  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain Wish  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains class  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain class  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains 4  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain 4  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains jus  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain jus  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains account  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain account  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains apparently  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain apparently  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains win  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain win  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains huge  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain huge  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains Yup  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain Yup  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains happen  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain happen  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains IN  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain IN  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message contains Nope  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 IF message does not contain Nope  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message contains Dude  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     IF message does not contain Dude  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message contains bit  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         IF message does not contain bit  AND
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message contains exactly  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             IF message does not contain exactly  THEN
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 type = ham
