import java.awt.*;
import java.awt.event.*;
public class RobotClick {
  public static void main(String[] args) throws Exception {
    int x=Integer.parseInt(args[0]); int y=Integer.parseInt(args[1]);
    Robot r=new Robot();
    r.setAutoDelay(80);
    r.mouseMove(x,y);
    r.mousePress(InputEvent.BUTTON1_DOWN_MASK);
    r.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
  }
}
