#include <stdio.h>

//Assuming the stability index formula is weight * balance / (speed * tilt)
float calculatestabilityindex(int weight, int speed, float balance, float tilt) {
    return (weight * balance) / (speed * tilt);
    
}

int main() {
    int weight, speed;
    float balance, tilt
    
    
    printf("Enter weight, speed, balance, tilt; ");
    scanf("%d %f %f", &weight, &speed, &balance, &tilt);
    
    if (weight > 0 && speed > 0 && balance >0 && tilt > 0) {
        float stabilityindex = calculatestabilityindex(weight, speed, balance, tilt);
        print("stability index: %.2f\n" , stabilityindex);
    } else {
        printf("invalid input\n");
    }
    
    return 0;
}