import java.io.*; class Main { static final int PROBLEM = 0; /* The problem # here */ static final int TEAM = 0; /* Your team # here */ static PrintWriter out; static BufferedReader in; // // main must be declared in Main ... // static void main(String[] args) throws Exception { in=new BufferedReader( new FileReader("prob"+PROBLEM+".dat")); out=new PrintWriter(new BufferedWriter( new FileWriter("prob"+PROBLEM+".out"))); out.println("Program " + PROBLEM + " by team " + TEAM); solve_problem(); out.println("End of program " + PROBLEM + " by team " + TEAM); in.close(); out.close(); } static void solve_problem() throws Exception { // TODO: solve the problem! } }