import java.io.*;
import java.util.Scanner;
import java.math.BigInteger;

public class J
{
	public static BigInteger extGcd(BigInteger a, BigInteger b, BigInteger xy[])
	{
		if (b.equals(BigInteger.ZERO)){
			xy[0] = BigInteger.ONE;
			xy[1] = BigInteger.ZERO;
			return a;
		}
		BigInteger ret = extGcd(b, a.mod(b), xy);
		BigInteger t = xy[0];
		xy[0] = xy[1];
		xy[1] = t.subtract(a.divide(b).multiply(xy[1]));
		return ret;
	}

	public static void main(String args[])
	{
/*		try{
			PrintStream ps = new PrintStream("J.out");
			System.setOut(ps);
		}
		catch(FileNotFoundException e){
			//e.printStackTrace;
		}
*/		
		Scanner readin = new Scanner(System.in);
		BigInteger a, b, c, x = BigInteger.ZERO, y = BigInteger.ZERO;
		a = readin.nextBigInteger();
		b = readin.nextBigInteger();
		c = readin.nextBigInteger();
		while (!(a.equals(BigInteger.ZERO) && b.equals(BigInteger.ZERO) && c.equals(BigInteger.ZERO))){
			boolean flag = true;
			if (a.equals(BigInteger.ZERO)){
				x = BigInteger.ZERO;
				if (c.mod(b).equals(BigInteger.ZERO))
					y = c.divide(b);
				else
					flag = false;
			}
			else{
				BigInteger xy[] = new BigInteger[2];
				BigInteger gcd = extGcd(a, b, xy);
				if (!c.mod(gcd).equals(BigInteger.ZERO))
					flag = false;
				else{
					a = a.divide(gcd);
					b = b.divide(gcd);
					c = c.divide(gcd);
					x = xy[0].multiply(c);
					y = xy[1].multiply(c);
					if (x.compareTo(BigInteger.ZERO) < 0 && y.compareTo(BigInteger.ZERO) < 0)
						flag = false;
					else if (x.compareTo(BigInteger.ZERO) < 0){
						BigInteger t = x.abs().subtract(BigInteger.ONE).divide(b).add(BigInteger.ONE);
						x = x.add(b.multiply(t));
						y = y.subtract(a.multiply(t));
						if (y.compareTo(BigInteger.ZERO) < 0)
							flag = false;
					}
					else if (y.compareTo(BigInteger.ZERO) < 0){
						BigInteger t = y.abs().subtract(BigInteger.ONE).divide(a).add(BigInteger.ONE);
						x = x.subtract(b.multiply(t));
						y = y.add(a.multiply(t));
						if (x.compareTo(BigInteger.ZERO) < 0)
							flag = false;
					}
					if (x.compareTo(BigInteger.ZERO) >= 0 && y.compareTo(BigInteger.ZERO) >= 0)
						if (flag){
							BigInteger t = x.divide(b);
							x = x.subtract(b.multiply(t));
							y = y.add(a.multiply(t));
						}
				}
			}
			
			if (flag){
				System.out.print(x.toString() + " foom");
				if (! x.equals(BigInteger.ONE))
					System.out.print("s");
				System.out.print(" and " + y.toString() + " foob");
				if (! y.equals(BigInteger.ONE))
					System.out.print("s");
				System.out.println(" for a twob!");
			}
			else
				System.out.println("Unquibable!");

			a = readin.nextBigInteger();
			b = readin.nextBigInteger();
			c = readin.nextBigInteger();
		}
	}
}
