title: Not able to figure out invalid syntax error
body: <p>Misty is fond of pokemons and likes to collect pokemon cards. She has P pokemon cards with her at present. She wants to have a particular number of cards on the Dth day. Her friend Ash is ready to help her to achieve the number. Ash will provide her N cards daily so that a day before the Dth day, she will have the required number of Pokemon cards.</p>
  <p>Input Format
  The first line of input consists of the number of test cases, T</p>
  <p>The only line of each test case consists of three space-separated integers, P, N and D.</p>
  <p>Constraints
  1&lt;= T &lt;=100</p>
  <p>1&lt;= D &lt;=100000</p>
  <p>0 &lt;= P, N &lt;=100000</p>
  <p>Output Format
  For each test case, print the required answer in a separate line.</p>
  <p>Sample TestCase 1</p>
  <p>Input</p>
  <p>2</p>
  <p>5 4 6</p>
  <p>2 2 2</p>
  <p>Output</p>
  <p>25</p>
  <p>4</p>
  <p>For the above question I have written the following code</p>
  <pre><code>def main():
    n=int(input())
    for i in range(n):
        li=list(int(i) for i in input().strip().split(' '))
        P=li[0]
        N=li[1]
        D=li[2]
        for i in range(D-1):
           mul=(D-1)*N
        ans=mul+P
   return ans
  
  
  main()
  </code></pre>
  <p>After compiling I get the following error</p>
  <pre><code>Traceback (most recent call last):
  
    File &quot;CandidateCode.py&quot;, line 16, in &lt;module&gt;
      main()
  
    File &quot;CandidateCode.py&quot;, line 5, in main
  
    li=list(int(i) for i in input().strip().split(' '))
  
    File &quot;&lt;string&gt;&quot;, line 1
  
    5 4 6
  
     ^
  SyntaxError: invalid syntax
  </code></pre>
  <p>What is the invalid syntax here?</p>