setmode(1);
fun f(x)
{
  print "f(",x,") --> ";
  if(x<0){
    return -1*x;
  }else{
    return f(x-f(x-1))/2;
  }
}
println f(2);
