Can you help me with this code?...

import java.util.;
import java.lang.

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
	public static void main (String[] args) throws java.lang.Exception
		int temp1,temp2,temp3;
	Scanner sc=new Scanner(;

You can also check here (with inputs )

What is the requirement of this program? Which problem you are attempting to solve ?? Provide more details otherwise it is not clear what you are trying to do.

You can check here-

This is a question from a live contest. Read the Code of Conduct and do not post your code or ask for help about problem(s) from a live contest during the contest.

I joined the codechef today. I am not aware about these things.This will not be repeated. Thanks for telling me.

Welcome to the Codechef programming community.

As you are new here I would suggest you to go through Code of Conduct , FAQ , Tutorials , Sample Solutions , how to ask a question and other rules/regulations clearly.

Hope you enjoy this place.