:- prompt(_, '').
:- use_module(library(readutil)).
main:-
process,
process:-
/* your code goes here */
symptom(amit,fever).
symptom(amit,rash).
symptom(amit,headache).
symptom(amit,runn_nose).
symptom(kaushal,chills).
symptom(kaushal,fever).
symptom(kaushal,hedache).
symptom(dipen,runny_nose).
symptom(dipen,rash).
symptom(dipen,flu).
hypothesis(Patient,measels):-
symptom(Patient,fever),
symptom(Patient,cough),
symptom(Patient,conjunctivitis),
symptom(Patient,rash).
hypothesis(Patient,german_measles) :-
symptom(Patient,fever),
symptom(Patient,headache),
symptom(Patient,runny_nose),
symptom(Patient,rash).
hypothesis(Patient,flu) :-
symptom(Patient,fever),
symptom(Patient,headache),
symptom(Patient,body_ache),
symptom(Patient,chills).
hypothesis(Patient,common_cold) :-
symptom(Patient,headache),
symptom(Patient,sneezing),
symptom(Patient,sore_throat),
symptom(Patient,chills),
symptom(Patient,runny_nose).
hypothesis(Patient,mumps) :-
symptom(Patient,fever),
symptom(Patient,swollen_glands).
hypothesis(Patient,chicken_pox) :-
symptom(Patient,fever),
symptom(Patient,rash),
symptom(Patient,body_ache),
symptom(Patient,chills).
:- main.
Oi0gc2V0X3Byb2xvZ19mbGFnKHZlcmJvc2Usc2lsZW50KS4KOi0gcHJvbXB0KF8sICcnKS4KOi0gdXNlX21vZHVsZShsaWJyYXJ5KHJlYWR1dGlsKSkuCgptYWluOi0KCXByb2Nlc3MsCgloYWx0LgoKcHJvY2VzczotCgkvKiB5b3VyIGNvZGUgZ29lcyBoZXJlICovCglzeW1wdG9tKGFtaXQsZmV2ZXIpLgogICAgc3ltcHRvbShhbWl0LHJhc2gpLgogICAgc3ltcHRvbShhbWl0LGhlYWRhY2hlKS4KICAgIHN5bXB0b20oYW1pdCxydW5uX25vc2UpLgogICAgCiAgICBzeW1wdG9tKGthdXNoYWwsY2hpbGxzKS4KICAgIHN5bXB0b20oa2F1c2hhbCxmZXZlcikuCiAgICBzeW1wdG9tKGthdXNoYWwsaGVkYWNoZSkuCiAgICAKICAgIHN5bXB0b20oZGlwZW4scnVubnlfbm9zZSkuCiAgICBzeW1wdG9tKGRpcGVuLHJhc2gpLgogICAgc3ltcHRvbShkaXBlbixmbHUpLgogICAgCgogICAgaHlwb3RoZXNpcyhQYXRpZW50LG1lYXNlbHMpOi0KICAgICAgICBzeW1wdG9tKFBhdGllbnQsZmV2ZXIpLAogICAgICAgIHN5bXB0b20oUGF0aWVudCxjb3VnaCksCiAgICAgICAgc3ltcHRvbShQYXRpZW50LGNvbmp1bmN0aXZpdGlzKSwKICAgICAgICBzeW1wdG9tKFBhdGllbnQscmFzaCkuCiAgICAKICAgIGh5cG90aGVzaXMoUGF0aWVudCxnZXJtYW5fbWVhc2xlcykgOi0KICAgICAgICBzeW1wdG9tKFBhdGllbnQsZmV2ZXIpLAogICAgICAgIHN5bXB0b20oUGF0aWVudCxoZWFkYWNoZSksCiAgICAgICAgc3ltcHRvbShQYXRpZW50LHJ1bm55X25vc2UpLAogICAgICAgIHN5bXB0b20oUGF0aWVudCxyYXNoKS4KICAgIAogICAgaHlwb3RoZXNpcyhQYXRpZW50LGZsdSkgOi0KICAgICAgICBzeW1wdG9tKFBhdGllbnQsZmV2ZXIpLAogICAgICAgIHN5bXB0b20oUGF0aWVudCxoZWFkYWNoZSksCiAgICAgICAgc3ltcHRvbShQYXRpZW50LGJvZHlfYWNoZSksCiAgICAgICAgc3ltcHRvbShQYXRpZW50LGNoaWxscykuCgogICAgaHlwb3RoZXNpcyhQYXRpZW50LGNvbW1vbl9jb2xkKSA6LQogICAgICAgIHN5bXB0b20oUGF0aWVudCxoZWFkYWNoZSksCiAgICAgICAgc3ltcHRvbShQYXRpZW50LHNuZWV6aW5nKSwKICAgICAgICBzeW1wdG9tKFBhdGllbnQsc29yZV90aHJvYXQpLAogICAgICAgIHN5bXB0b20oUGF0aWVudCxjaGlsbHMpLAogICAgICAgIHN5bXB0b20oUGF0aWVudCxydW5ueV9ub3NlKS4KICAgICAgICAKICAgIGh5cG90aGVzaXMoUGF0aWVudCxtdW1wcykgOi0KICAgICAgICBzeW1wdG9tKFBhdGllbnQsZmV2ZXIpLAogICAgICAgIHN5bXB0b20oUGF0aWVudCxzd29sbGVuX2dsYW5kcykuCiAgICAKICAgIGh5cG90aGVzaXMoUGF0aWVudCxjaGlja2VuX3BveCkgOi0KICAgICAgICBzeW1wdG9tKFBhdGllbnQsZmV2ZXIpLAogICAgICAgIHN5bXB0b20oUGF0aWVudCxyYXNoKSwKICAgICAgICBzeW1wdG9tKFBhdGllbnQsYm9keV9hY2hlKSwKICAgICAgICBzeW1wdG9tKFBhdGllbnQsY2hpbGxzKS4KCXRydWUuCgo6LSBtYWluLg==