Capture.PNG

example:
Sample Input 0

32768
Sample Output 0

64512
Sample Input 1

50
Sample Output 1

1008

ano po pseudo code or sample codes neto pabulong naman po.
kahit anong programming language po.