package yukicoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.*; public class P92 { public static void main(String[] args) throws IOException { MyScanner sc = new MyScanner(System.in); PrintWriter pw=new PrintWriter(System.out); final int n = sc.nextInt(); final int m = sc.nextInt(); final int k = sc.nextInt(); HashMap> adj = new HashMap<>(n+1); for(int i=1; i<=n; i++) { adj.put(i, new ArrayList()); } for(int i=0; i ans = new ArrayList<>(); for(int i=1; i<=n; i++) { if(exists[k][i]) { cnt++; ans.add(i); } } pw.println(cnt); for(int i=0; i