#C12273. Deep Copy of a Nested Dictionary

    ID: 41682 Type: Default 1000ms 256MiB

Deep Copy of a Nested Dictionary

Deep Copy of a Nested Dictionary

You are given a dictionary (in JSON format) as input from standard input. Your task is to create a deep copy of this dictionary. In other words, if the dictionary is denoted by \(D\), then your program should output a new dictionary \(D'\) such that \(D' = D\) in content, but modifying \(D'\) will not affect \(D\). This is particularly important when the dictionary contains nested dictionaries, lists, or other mutable data types.

Note: The deep copy must duplicate all levels of nested objects. For example, if the original dictionary is represented as:

{
  "a": {"b": 2},
  "c": [1, 2, 3]
}

Then the deep copy should also be:

{
  "a": {"b": 2},
  "c": [1, 2, 3]
}

Your program should read the dictionary from standard input and print the deep copied result to standard output in JSON format.

inputFormat

The input consists of a single JSON-formatted dictionary provided via standard input. The dictionary may contain nested dictionaries, lists, or other JSON types.

outputFormat

Output the deep copied dictionary in JSON format to standard output. The output should be exactly equivalent in content to the input.

## sample
{"a": 1, "b": 2}
{"a":1,"b":2}