update spoj problem transform the expression