```
class Solution:
# @return a tuple, (index1, index2)
def twoSum(self, num, target):
for i in range(len(num)):
if (target-num[i]) in num[i+1:]:
return (i+1, num[i+1:].get(target-num[i])+i+2)
else:
pass
```