POJ2689 SPOJ2

Signed-off-by: cyberzhg <cyberzhg@gmail.com>