#abc121b. [abc121_b]Can you solve this?

[abc121_b]Can you solve this?

输入 (n+2)(n+2) 行整数。

第一行:三个整数 n,m,cn,m,c

第二行: mm 个整数 b1,b2,...,bmb_1,b_2,...,b_m

第三行到第 (n+2)(n+2) 行:每行 mm 个整数 ai1,ai2,...,aima_{i1},a_{i2},...,a_{im} 。如果当前是全部输入中的第 jj 行,则一定有 i=j2i=j-2

输出:一行一个整数,为能使 ai1b1+ai2b2+...+aimbm+c>0a_{i1}b_1+a_{i2}b_2+...+a_{im}b_m+c>0 成立的 ii 的个数( 1in1≤i≤n )。