Your friend likes factoring numbers. In fact, your friend's favourite activity is coming up with numbers, and calculating its factors. One day, they decide that factoring numbers by hand takes too much effort, and entrusts you to write a program for them to do so.
Given an integer , you must output all of the factors of , including and . However, your friend demands that your code be short. Very short. Bytes take up space, after all.
Note: You may only submit to this problem in Python 3.
Input Specification
The first line of input contains a single integer .
Output Specification
Output the factors of , each on a separate line in any order, so long as there are no duplicates and all factors of are outputted.
Scoring
Your score will be computed based on the length of your source code, the shorter the better. For an -byte program,
- if , you will receive the full points.
- if , you will receive points.
- if , you will receive points.
Sample Input
70
Sample Output
1
2
5
7
10
14
35
70
Comments
solved this on Feb 9th apparently, but no submissions on Feb 9th?