import java.util.Scanner;class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the string");
String input = sc.nextLine();
System.out.println("Original: " + input);
input = input.replaceAll("\\s", "");
System.out.println("Final: " + input);
sc.close();
}
}