#K79157. Spice Availability Checker

    ID: 35246 Type: Default 1000ms 256MiB

Spice Availability Checker

Spice Availability Checker

You are given two lines of input. The first line contains a list of available spices, and the second line contains a list of required spices. Your task is to determine whether all the required spices are available among the available spices.

If all required spices are present, output the message:

$$All\ required\ spices\ are\ available.$$

If not, output the missing spices in the order they appear in the required list using the format:

$$Missing\ spices:\ spice_1,\ spice_2,\ ...$$

Notes:

  • The spices in each line are separated by spaces.
  • If a line is empty, it represents an empty list.
  • The check is case-sensitive.

inputFormat

The input consists of two lines read from standard input (stdin):

  1. The first line contains the available spices separated by spaces.
  2. The second line contains the required spices separated by spaces.

outputFormat

Output a single line to standard output (stdout). If all required spices are available, print "All required spices are available." Otherwise, print "Missing spices: " followed by a comma-separated list of the missing spices.

## sample
cumin turmeric coriander
cumin coriander
All required spices are available.