#include<stdio.h>
int main()
{
    int years_of_service;
    printf("Enter the number of years of service: ");
    scanf("%d", &years_of_service);
    if(years_of_service < -40 || years_of_service > 40)
    {
        printf("Invaild Input based on constraints.\n");
    }
    else 
    {
        return 0;
}