using System;
public class Program
{
public static void Main()
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c = int.Parse(Console.ReadLine());
for (int i = -9; i <= 9; i++)
for (int j = -9; j <= 9; j++)
if (a * i + b * j == c)
Console.WriteLine($"x = {i} y = {j}");
}