#include<stdio.h>
void calculatStabilityIndex(int weight, int speed, float balance, float tilt){
    if (weight <= 0 || speed <=0 || balance <= 0 || tilt <= 0){
        printf("Invalid input\n");
        }
    else{
        float stabilityIndex = (float)weight * speed * balance / tilt;
        printf("Stability Index: %.2f\n", stabilityIndex);
        }
    }
int main(){
    int weight, speed;
    float balance, tilt;
    printf("Enter weight(kg), speed(m/s), balance, tilt: ");
    scanf("%d %d %f %f", &weight, &speed, &balance, &tilt);
    CalculateStabilityIndex(weight, speed, balance, tilt);
    return 0;
    
}