This documentation is automatically generated by online-judge-tools/verification-helper
#define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_3_A"
#include <common.hpp>
#include "graph/components/block_cut_tree.hpp"
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n, m;
cin >> n >> m;
Undigraph<int> g(n);
while (m--) { int u, v; cin >> u >> v; g.add(u, v); }
BlockCutTree bct(g);
for (int u = 0; u < n; ++u) {
if (bct.isCut(u)) {
cout << u << '\n';
}
}
}