// Program 71: Increasing, Decreasing or Bouncy Number import java.util.*; class NumberTrend { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); if (!s.matches("[1-9][0-9]*")) { System.out.println("INVALID INPUT"); return; } boolean inc = true, dec = true; for (int i = 1; i < s.length(); i++) { if (s.charAt(i) < s.charAt(i - 1)) { inc = false; } if (s.charAt(i) > s.charAt(i - 1)) { dec = false; } } if (inc) { System.out.println("INCREASING NUMBER"); } else if (dec) { System.out.println("DECREASING NUMBER"); } else { System.out.println("BOUNCY NUMBER"); } } }