import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().run(); } static long time = 0; public void run() { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long c = sc.nextLong(); long MOD = Long.valueOf(BigInteger.valueOf(3_000_0).nextProbablePrime().toString()); ArrayList ans = new ArrayList<>(); for (long i = 0; i