Given the following multi_throw function, you are asked to write a program to catch all the exceptions. The program first reads an integer, passes it to the multi_throw function, and catches the exception that it may throw.void multi_throw(int i){ cout "Input: " i endl; if (i = 0) throw logic_error("non-positive"); if (i = 1) throw i; if (i = 5) throw runtime_error("run error"); if (i = 9) throw out_of_range("too big");}Your submitted source code should not include the multi_throw function.InputInput contains multiple test cases. Each case consists of an integer on a single line. Process to the end of file.OutputFor each test case, ouput the exception message and the type of exception if an exception is catched. Please follow the formats of the sample output.Sample Input Copy sample input to clipboard-119Sample OutputInput: -1Exception: non-positiveException type: class logic_errorInput: 1Exception: 1Exception type: intInput: 9Exception: too bigException type: class out_of_range问题补充: