def f{val a=readLine split' 'map{_.toInt-1};println(a.product-1);f};f