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) {
        
        // Scanner laptop = new Scanner(System.in);
        
        // Float Amount = laptop.nextFloat();
        // int Tgst = laptop.nextInt();
    
        
        // System.out.print("The Total Amount paid for the laptop is:"); System.out.println(" " + Amount);
        
        // System.out.print("The Total % of State GST Amount paid is:"); System.out.println(" " + Tgst/2);
        
        // System.out.print("The Total % GST Amount paid is:"); System.out.println(" " + Tgst/2);
        // System.out.print("The Total % of Central GST Amount paid is:"); System.out.println(" " + 100*Tgst/amount);
        // System.out.print("The Total amount of GST (Central + State) paid is:"); 
        
        Scanner scn = new Scanner(System.in);
        
        double x= scn.nextLong();
        int y = (int)x;
        int z = y;
        System.out.print(z);
        
    }
}

Embed on website

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