update for poj1548,hungary