#include using namespace std; #define int long long const int maxn=5e5+5; vector > a[maxn];bool used[maxn];int col[maxn]; void dfs(int x) { used[x]=true; for(auto [v,w]:a[x]) { if(used[v]) { if((col[v]^col[x])!=w) {puts("No");exit(0);} } else { col[v]=col[x]^w; dfs(v); } } } int32_t main() { ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); int n,m;cin>>n>>m; for(int i=0;i>x;string s;cin>>s;int y;cin>>y;--x;--y; if(s==("<==>")) {a[x].push_back({y,0});a[y].push_back({x,0});} else {a[x].push_back({y,1});a[y].push_back({x,1});} } for(int i=0;i=n){cout<<"Yes"<<'\n';cout<