#include <stdio.h>
#include <string.h>

int main(void)
{
    char ingredient[100];

    printf("Enter an ingredient: ");
    fgets(ingredient, 100, stdin);

    if (strstr(ingredient, "sour cream") != NULL)
    {
        printf("Use yogurt instead.\n");
    }
    else if (strstr(ingredient, "sugar") != NULL)
    {
        printf("Use honey or applesauce instead.\n");
    }
    else if (strstr(ingredient, "butter") != NULL)
    {
        printf("Use margarine or yogurt instead.\n");
    }
    else if (strstr(ingredient, "white bread") != NULL)
    {
        printf("Use whole-grain bread instead.\n");
    }
    else if (strstr(ingredient, "flour") != NULL)
    {
        printf("Use rye or rice flour instead.\n");
    }
    else if (strstr(ingredient, "milk") != NULL)
    {
        printf("Use soy milk instead.\n");
    }
    else
    {
        printf("No substitution was found.\n");
    }

    printf("\nAlways consult your physician before making significant changes to your diet.\n");

    return 0;
}