<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def md_to_pdf(input_name, output_name):
 """ Converts an input MarkDown file to a PDF of the given output name. Parameters ========== input_name : String Relative file location of the input file to where this function is being called. output_name : String Relative file location of the output file to where this function is being called. Note that .pdf can be omitted. Examples ======== Suppose we have a directory as follows: data/ doc.md To convert the document: .pdf can also be omitted from the second argument. """


    if output_name[-4:] == '.pdf':
        os.system("pandoc " + input_name + " -o " + output_name)
    else:
        os.system("pandoc " + input_name + " -o " + output_name + ".pdf" )