import java.math.*; import java.util.*; public class Main { static int dfs(int now){ if(dp[now]!=0) return dp[now]; int res=0; for(int i=0;i