Two software versions are given as dot-separated revision numbers, for example 1.2.10. Compare them numerically, one revision at a time from left to right: 1.2.10 is greater than 1.2.9 because 10 > 9. Leading zeros in a revision are ignored (1.01 equals 1.1). If one version has fewer revisions, treat the missing revisions as 0 (1.0 equals 1).
Input format
Line 1: the first version string v1.
Line 2: the second version string v2.
Output format
Print -1 if v1 < v2, 1 if v1 > v2, or 0 if they are equal.
Constraints
- Each version is a non-empty string of digits separated by single dots.
- 1 <= number of revisions in each version <= 100
- Each revision fits in a 64-bit integer.