#B4053. Hero Evaluation Based on Attributes

    ID: 11710 Type: Default 1000ms 256MiB

Hero Evaluation Based on Attributes

Hero Evaluation Based on Attributes

In (\text{迪迪卫}), each hero possesses three attributes: power (A), tankiness (B), and responsibility (C). Little Z evaluates a hero using an assessment parameter (K) with the following criteria:

  • If \(A+B \ge K\), the hero is an All-Rounder.
  • If \(A+C \ge K\), the hero is a Main Pillar.
  • If \(B+C \ge K\), the hero is deemed Reliable.

Given the four integers \(A, B, C,\) and \(K\), determine whether the hero meets each condition. For each criterion, output Yes if the condition is satisfied, otherwise output No. The outputs must be in the order: All-Rounder, Main Pillar, and Reliable.

inputFormat

The input consists of a single line with four space-separated integers: (A), (B), (C), and (K).

outputFormat

Output a single line with three space-separated strings. Each string must be either Yes or No, corresponding to whether the hero qualifies as an All-Rounder, Main Pillar, and Reliable, respectively.

sample

10 5 3 12
Yes Yes No