PROGRAMMING:Finding the sum of factors of a positive integer
From the keyboard input a positive integer (greater than 1 and less than or equal to 1000), output his factor and its sum (factor does not include itself).
###Input format:
A positive integer greater than 1 and less than or equal to 1000
###Output format:
The first line outputs all factors (separated by spaces), and the second line outputs the sum of factors
###Input sample 1:
Here is a set of inputs. For example:
```in
eight
```
###Output sample 1:
The corresponding output is given here. For example:
```out
1 2 4
seven
```
###Input sample 2:
Here is a set of inputs. For example:
```in
one
```
###Output sample 2:
The corresponding output is given here. For example:
```out
Error!
```
###Input sample 3:
Here is a set of inputs. For example:
```in
one thousand and one
```
###Output sample 3:
The corresponding output is given here. For example:
```out
Error!
```
answer:If there is no answer, please comment
###Input format:
A positive integer greater than 1 and less than or equal to 1000
###Output format:
The first line outputs all factors (separated by spaces), and the second line outputs the sum of factors
###Input sample 1:
Here is a set of inputs. For example:
```in
eight
```
###Output sample 1:
The corresponding output is given here. For example:
```out
1 2 4
seven
```
###Input sample 2:
Here is a set of inputs. For example:
```in
one
```
###Output sample 2:
The corresponding output is given here. For example:
```out
Error!
```
###Input sample 3:
Here is a set of inputs. For example:
```in
one thousand and one
```
###Output sample 3:
The corresponding output is given here. For example:
```out
Error!
```
answer:If there is no answer, please comment