Login Check

0.5s 256M

A system has only one account: the account number is \(1001\) and the password is \(1234\).

When a user logs in, they enter an account number and a password. The system responds as follows:

  • If the account number is not \(1001\), output User not found.
  • If the account number is \(1001\) but the password is not \(1234\), output Wrong password.
  • If the account number is \(1001\) and the password is \(1234\), output Login OK.

Write a program that reads the account number and password and prints the system's response.

Input

A single line with two integers \(a\) and \(p\) separated by a space: the account number and the password that were entered.

Constraints

  • \(0 \le a \le 9999\)
  • \(0 \le p \le 9999\)

Output

Output one line: Login OK, Wrong password, or User not found.

Sample Input 1

1001 1234

Sample Output 1

Login OK

Sample Input 2

1001 4321

Sample Output 2

Wrong password

Sample Input 3

1002 1234

Sample Output 3

User not found

Sample Explanation

In sample 3 the password is \(1234\), but account \(1002\) does not exist, so the response is User not found, not Login OK.

Problem page help

Keyboard shortcuts

Main features

  • Sample tests — Runs the sample cases bundled with the problem and auto-compares against the expected output.
  • Custom test — Run your code with your own stdin. Optionally tick the "Compare with expected (diff)" box to verify against expected output line-by-line.
  • Template — Paste the default code template you set on your profile page.
  • Collab — Edit this problem together with classmates in real time.
  • Auto-draft — Editor contents auto-save to your browser every 1.5 seconds (per account / problem / language).
  • Submit — Send your code to the judge for grading; returns AC / WA / TLE etc.

Limits

  • Source code: at most 65,536 characters
  • Custom test stdin and expected output: at most 1 MB each (≈1 million characters)
  • Custom test: about 1 request per 3 s per user (sample test: 1 per 1 s)
  • Custom test has a 15 second wall-clock cap; sample tests use the problem time limit, the same as the official judge
  • Interactive problems do not offer custom test (cannot simulate interaction with the judge).
  • Submitting has no rate limit, but rapid repeated submissions on the same problem are treated as score farming.