3: if both cars turned over during the collision.
Susie wants to find all the good cars. She quickly determined which cars are good. Can you cope with the task?
Input
The first line contains integer n (1?≤?n?≤?100) — the number of cars.
Each of the next n lines contains n space-separated integers that determine matrix A.
It is guaranteed that on the main diagonal there are ?-?1, and ?-?1 doesn't appear anywhere else in the matrix.
It is guaranteed that the input is correct, that is, if Aij?=?1, then Aji?=?2, if Aij?=?3, then Aji?=?3, and if Aij?=?0, then Aji?=?0.
Output
Print the number of good cars and in the next line print their space-separated indices in the increasing order.
Sample test(s) input
3
-1 0 0
0 -1 1
0 2 -1
output
2
1 3
input
4
-1 3 3 3
3 -1 3 3
3 3 -1 3
3 3 3 -1
output
0
/* ***********************************************
Author :CKboss
Created Time :2015年05月20日 星期三 00時23分11秒
File Name :A.cpp
************************************************ */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include