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

#define SIZE 100

int main(void)
{
    char string1[SIZE];
    char string2[SIZE];

    printf("Enter the first string: ");
    fgets(string1, SIZE, stdin);

    printf("Enter the second string: ");
    fgets(string2, SIZE, stdin);

    string1[strcspn(string1, "\n")] = '\0';
    string2[strcspn(string2, "\n")] = '\0';

    int result = strcmp(string1, string2);

    if (result < 0)
    {
        printf("The first string is less than the second string.\n");
    }
    else if (result > 0)
    {
        printf("The first string is greater than the second string.\n");
    }
    else
    {
        printf("The two strings are equal.\n");
    }

    return 0;
}