Page not loading? Try clicking here.
Placeholder

#2096

분수크기 비교 1s 64MB

Problems

a/b 와 c/d 의 대소를 판단하는 프로그램을 작성하라.


Input

a, b, c ,d 가 입력으로 주어진다. 입력되는 수는 10,000 이하인 양의 정수이다.


Output

a/b > c/d 이면 1, a/b = c/d 이면 0, a/b < c/d 이면 -1을 출력한다.


Example

3 4 5 6
-1
You must sign in to write code.