Write a program to prompt the user to input the name and marks in 5 subjects- English, Hindi, Maths, Science and Social Science (out of 50) of a student and display the Name, Marks, and percentage obtained by the student. Also, display the percentage obtained in 3 subjects separately (English, Maths and Science). The output should look like a marksheet with Division based on the details given below:
% Division 75 and above Distinction
61-74 First Division
40-60 Second Division
Below 40 fail