ReC98/th05/ems.cpp