func main() var n: int :: cui@inputInt() var m: int :: cui@inputInt() var cup: []bool :: #[4]bool do cup[n] :: true for(1, m) var p: int :: cui@inputInt() var q: int :: cui@inputInt() var tmp: bool :: cup[p] do cup[p] :: cup[q] do cup[q] :: tmp end for for i(1, 3) if(cup[i]) do cui@print("\{i}\n") end if end for end func