Error in output

I am getting error in output
Exception in thread “main” java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:862)
at java.util.Scanner.next(Scanner.java:1485)
at java.util.Scanner.nextInt(Scanner.java:2117)
at java.util.Scanner.nextInt(Scanner.java:2076)
at Main.main(Main.java:6)
How can i resolve this error?

Hi
Please save your code on coding blocks ide and share the url here so that i can review it … most probably you are not providing any input so it is giving no such element error

Just submit the code … It is correct and it is showing no error to me