#include using namespace std; int main(){ int n,m; cin>>n>>m; n = n / 1000; cout<