Can someone explain how this code is working. what should be answer for case in which a=7 and b=9

My issue

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	
	int t;cin>>t;
	while(t--){
	    int a,b;
	    cin>>a>>b;
	    if(a&1 && b&1){
	        cout<<"Vanka"<<endl;
	    }
	    else{
	        cout<<"Tuzik"<<endl;
	    }
	}
	return 0;
}

Problem Link: PUPPYGM Problem - CodeChef

@demigod_09
this code is working because vanka will win when odd a and b is odd else tuzik will win
and for a=7,b=9
since both is odd then vanka will win

can you explain why vanka will win for odd

@demigod_09
bro the thing is when i found any even in my turn i’ll manage to win the game so if tuzik gets both odd then he forced to break any of them into one odd and one even then vanka will eat odd and break even into two odds that’s how she’ll manage to win each time when both a and b are odd initially.