class Solution(object):
def findNumbersWithSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
n=len(nums)
if n==2:
return nums
als=[0,0]
for x in range(n):
num1=nums[x]
for y in range(x+1,n):
num2=nums[y]
if num1+num2==target:
return [num1,num2]