#D3771. Map: Delete
Map: Delete
Map: Delete
For a dictionary that stores elements formed by a pair of a string key and an integer value, perform a sequence of the following operations. Note that each key in must be unique.
- insert(, ): Insert an element formed by a pair of and to .
- get(): Print the value with the specified . Print 0 if there is no such element.
- delete(): Delete the element with the specified .
Constraints
- length of
- consits of lower case letters
Input
The input is given in the following format.
:
Each query is given by
0
or
1
or
2
where the first digits 0, 1 and 2 represent insert, get and delete operations respectively.
Output
For each get operation, print an integer in a line.
Example
Input
8 0 blue 4 0 red 1 0 white 5 1 red 1 blue 2 red 1 black 1 red
Output
1 4 0 0
inputFormat
Input
The input is given in the following format.
:
Each query is given by
0
or
1
or
2
where the first digits 0, 1 and 2 represent insert, get and delete operations respectively.
outputFormat
Output
For each get operation, print an integer in a line.
Example
Input
8 0 blue 4 0 red 1 0 white 5 1 red 1 blue 2 red 1 black 1 red
Output
1 4 0 0
样例
8
0 blue 4
0 red 1
0 white 5
1 red
1 blue
2 red
1 black
1 red
1
4
0
0
</p>