program to find hcf and lcm