Boolean
Boolean-21
Boolean-22
Boolean-23
~/algor $ cat problems/boolean-raqamlari-osib-boradimi
Are the digits increasing?
Easy
1000 ms
64 MB
17%
A three-digit positive integer $n$ is given. Check whether the statement is true: “the digits of $n$ strictly increase from left to right”. For example, it is true for $158$ ($1 \lt 5 \lt 8$) and false for $155$.
Input
One three-digit positive integer $n$.
Output
One integer: $1$ if the statement is true, otherwise $0$.
Note
$100 \le n \le 999$
Examples
Input #1
158
Output #1
1
Input #2
155
Output #2
0