import java.util.Scanner;
public class MainClass {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int bank = 1000;
int pari;
do {
System.out.print("Enter your pari: ");
pari = sc.nextInt();
} while ((pari <= 0) || (pari > bank));
}
}