#include using namespace std; #define REP(i,m,n) for(int i=(int)(m) ; i < (int) (n) ; ++i ) #define rep(i,n) REP(i,0,n) typedef long long ll; typedef pair pint; typedef pair pli; const int inf=1e9+7; const ll longinf=1LL<<60 ; const ll mod=1e9+7 ; int main(){ int n,m,k; cin>>n>>m>>k; assert(1<=n&&n<=300); assert(0<=m&&m<=300); assert(0<=k&&k<=1000000000); int a[n]; rep(i,n){ cin>>a[i]; assert(0<=a[i]&&a[i]<=1000000000); } pair> p[m]; map,int> mp; rep(i,m){ int t,l,r; cin>>t>>l>>r; assert(t==0||t==1); assert(1<=l&&l<=r&&r<=n); assert(mp[pint(l,r)]==0); ++mp[{l,r}]; } cout<<0<