fn main() { let max_length=524288; let mut mt=vec![vec![0;19];max_length]; for i in 0..max_length{ for x in 0..19{ let mut t=0; for y in x+1..19{ if i & (1<>=vec![vec![0;max_length];2]; dp[0][0]=1; for _i in 0..19{ let a: Vec = { let mut line: String = String::new(); std::io::stdin().read_line(&mut line).unwrap(); line.split_whitespace() .map(|x| x.parse().unwrap()) .collect() }; for jj in 0..max_length{ let j=max_length-1-jj; for l in 0..2{ if dp[l][j]!=0{ for k in 1..a.len(){ let x=a[k]-1; if j & (1<