For this Question: While doing homework, Nobita stuck on a problem and asks for your help. 
Problem statement:-
Given three integers X, Y, and N. Your task is to check if it is possible to form N by using only combinations of X and Y.
i.e check if there exist any P and Q such that P*X + Q*Y = N

Note:- P and Q can be negativeThe input contains only three integers X, Y, and N.

Constraints:-
1 <= X, Y, N <= 100000Print "YES" if it is possible to form N else print "NO".Sample Input:-
3 5 18

Sample Output:-
YES

Explanation:-
1 * 3 + 3 * 5 = 18 (P = 1, Q = 3)

Sample Input:-
4 8 15

Sample Output:-
NO, I have written this Solution Code: l,m,z=input().split()
x=int(l)
y=int(m)
n=int(z)
flag=0
for i in range(1,n):
	sum1=n-i*y
	sum2=n+i*y
	if(sum1%x==0 or sum2%y==0):
		flag=1
		break

if flag==1:
	print("YES")
else:
	print("NO"), In this Programming Language: Python, Now tell me if this Code is compilable or not?