junbeder @ 2024-08-15 17:11:08
#include<iostream>
using namespace std;
int main(){
long long m,k;
cin>>m>>k;
if(m%(k*3)==0)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
}
by zhizhenhuyuzhe @ 2024-08-15 17:14:15
#include<bits/stdc++.h>
using namespace std;
int main(){
char n;
int k,cnt=0;
while((n=getchar())!=' ')
if(n=='3')
cnt++;
cin>>k;
if(cnt==k)
cout<<"YES";
else
cout<<"NO";
return 0;
}