#include using namespace std; using u64 = uint_least64_t; using s64 = int_least64_t; using ll = uint_least64_t; int main(){ int n,m; cin >> n >> m; vector u(m),v(m),w(m); for (int i = 0; i < m; i++){ cin >> u[i] >> v[i] >> w[i]; } cout << n << endl; return 0; }