Help me in solving WRAPGIFTS problem

My issue

It is failed on a test case

My code

#include <stdio.h>

int main() {
	// your code goes here
	int h,l,w,x;
	scanf("%d %d %d",&h,&l,&w);
	x=2*(h*l+l*w+w*h);
	printf("%d",1000/x);

}


Problem Link: Christmas Gifts Practice Coding Problem