#include using namespace std; #define int long long signed main(){ set s; for(int i=0;i<=12345;i++){ s.insert(to_string(i)); } string a,b; cin>>a>>b; if(s.count(a) && s.count(b)) cout<<"OK"<