using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; static class Program{ const int mod=(int)1e9+7; static List<(int,int)>[] li; static bool[] b,h; static int[] low,ord; static void Main(){ Sc sc=new Sc(); var s=sc.Ia; int n=s[0],m=n; li=new List<(int,int)>[n+1]; b=new bool[n+1]; h=new bool[n+1]; low=new int[n+1]; ord=new int[n+1]; for(int i=1;i<=n;i++){li[i]=new List<(int,int)>();} for(int i=0;i(); for(int i=1;i<=n;i++){ if(!h[i]){ ans.Add(i); } } Console.WriteLine(ans.Count); Console.WriteLine("{0}",string.Join(" ",ans)); } static void Fu(int a,int g,int p){ b[a]=true; ord[a]=low[a]=g; for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i