// This program reads a value of the class Point.
// Barry Cornelius, 2 June 2000
import java.io.   BufferedReader;
import java.io.   InputStreamReader;
import java.io.   IOException;
import java.awt.  Point;
import java.util. StringTokenizer;
public class ReadAPoint
{
   public static void main(final String[] pArgs) throws IOException
   {
      final BufferedReader tKeyboard =
                    new BufferedReader(new InputStreamReader(System.in));
      System.out.println("Type in a point, e.g., 400:500");
      final String tLine = tKeyboard.readLine();
      final StringTokenizer tTokens = new StringTokenizer(tLine, ":");
      String tThisToken = tTokens.nextToken();
      final int x = new Integer(tThisToken).intValue();
      tThisToken = tTokens.nextToken();
      final int y = new Integer(tThisToken).intValue();
      final Point tPoint = new Point(x, y);
      System.out.println("The point is at: " + tPoint);
  }
}
