import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
        // System.out.println("Hello world!");
        
        Scanner scn = new Scanner(System.in);
        int a = scn.nextInt();
        int i = 1000;
        
        System.out.println("How many People/Person have voted until, now ? - Only " + a);
        
        while (a <=i){
            if (a<=1000){
                //System.out.println("All folks have voted.");
                System.out.println("Only " + a + " people/person has voted, so far. Still few more people are left." + (1000-a));
              
            if(a<=i){
                System.out.println("We cannot vote more than entitled ");
            } 
        else {
                  i = i - a + i++;
              }
            }
        }
    }
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: