typedef long long ll; typedef long double ld; #include using namespace std; // #define int long long #include using namespace __gnu_pbds; template using ordered_set = tree, rb_tree_tag, tree_order_statistics_node_update>; // std::cout << *s.find_by_order(1) << std::endl; // 2 signed main(){ // これがないと落ちることがある ios_base::sync_with_stdio(false); cin.tie(0); ll a,b; cin >> a>>b; vector c(b+1); c[b] = a; ll now = b; while(now-2>=0){ auto v = c[now]; c[now-1] -= v; c[now-2] -= v; now--; } cout << c[1]<<" "<