A wafer chuck is designed to allow the substrate to thermally deform during charged particle beam lithography. First to fourth element-regions extend in a tilt-direction. The software program receives a serial number from the second computer and stores the serial number in a memory of the first computer. An optical path changing device is disposed on one of the main surfaces.