Tasks:
 
How to Submit Java Solutions.
Here are some information on how to submit java sources, and how are they graded.

Compiling

For Java source files the following command is used. The file zjava.jar contains all the classes that you can use. The list of the classes is shown below.

javac -bootinclude zjava.jar zi.java

Execution

For Java code is executed with: (The memory limits in java are controled by the JRE. Therefore, if you exceed the memory limit, you will get a message saying System error!

java -XmxMEMLIMIT zi

Limits

Java running time is calculated with the following formula:

JavaTimeLimit = 0.1s + TimeLimit*1.5

Java memory limits are controlled by the JRE.

Your classname must be "zi".

Classname, Input and Output

Your classname must be "zi".

You can read and write to the standard input like this

import java.io.*;
import java.util.*;

public class zi
{
   public static void main(String[] args) throws IOException
   {
      new zi().run();
   }

   StreamTokenizer in;
   PrintWriter out;

   int nextInt() throws IOException
   {
      in.nextToken();
      return (int)in.nval;
   }

   void run() throws IOException
   {
      in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
      out = new PrintWriter(new OutputStreamWriter(System.out));
      solve();
      out.flush();
   }

   void solve() throws IOException
   {
      int a = nextInt();
      int b = nextInt();
      out.print(a + b);
   }
}

Available Classes

You may use classes from any of the following packages (not including subpackages):

  java.io 
  java.lang 
  java.math 
  java.util 

EXCEPT for the following classes:

  java.io.File 
  java.io.FileDescriptor 
  java.io.FileInputStream 
  java.io.FileOutputStream 
  java.io.FilePermission 
  java.io.FileReader 
  java.io.FileWriter 
  java.io.RandomAccessFile 
  java.io.SerializablePermission 
  java.lang.Class 
  java.lang.ClassLoader 
  java.lang.Compiler 
  java.lang.InheritableThreadLocal 
  java.lang.Package 
  java.lang.Process 
  java.lang.ProcessBuilder 
  java.lang.Runtime 
  java.lang.RuntimePermission 
  java.lang.SecurityManager 
  java.lang.Thread 
  java.lang.ThreadGroup 
  java.lang.ThreadLocal 
  java.util.Calendar 
  java.util.Currency 
  java.util.Date 
  java.util.EventListener 
  java.util.EventListenerProxy 
  java.util.EventObject 
  java.util.FormattableFlags 
  java.util.Formatter 
  java.util.GregorianCalendar 
  java.util.ListResourceBundle 
  java.util.Locale 
  java.util.MissingResourceException 
  java.util.Properties 
  java.util.PropertyPermission 
  java.util.PropertyResourceBundle 
  java.util.ResourceBundle 
  java.util.SimpleTimeZone 
  java.util.TimeZone 
  java.util.Timer 
  java.util.TimerTask 
  java.util.UUID 
  java.util.WeakHashMap