QOJ.ac

QOJ

时间限制: 1 s 内存限制: 512 MB 总分: 100

#14744. Painted Signs

统计

The image below shows the DUT XCPC logo designed by Z-shaped pipe cat.

The amount of paint required to color this logo (unit: grams g) is $a$, and the amount of paint currently available is $b$. Please determine whether the currently available amount of paint is sufficient to color this logo.

Input

A single line containing two paint amounts separated by a space, representing the amount of paint required to complete the coloring and the amount of paint currently available, respectively. Each paint amount consists of a three-digit integer followed immediately by the unit g. The three-digit integer is an integer in the range $[100, 999]$.

Output

A single integer, 0 or 1. 0 indicates insufficient, and 1 indicates sufficient.

Examples

Input 1

123g 333g

Output 1

1

Input 2

123g 123g

Output 2

1

Input 3

333g 123g

Output 3

0

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.