#include #include #define MAX 1000000000 using namespace std; typedef long long ll; int main(void){ ll n,m; cin>>n>>m; if(n<1000){ cout<<0<