#include using namespace std; using ll = long long; #define fi first #define se second #define all(a) a.begin(),a.end() int main(){ int n,m; cin >> n >> m; vector g(n); for(int i=0; i> a >> b; g[b-1]++; } int ans=0; for(int i=0; i