import java.util.*; import java.math.*; public class Main { public static void main(String[] args) { BigInteger a,b,c; int t; Scanner cin=new Scanner(system.in); t=cin.nextInt(); int i; for(i=1;i<=t;i++){ a=cin.nextBigInteger(); b=cin.nextBigInteger(); c=cin.nextBigInteger(); a=a.add(b); if(a.compareto(c)>0) System.out.println("Case #"+i+": true"); else System.out.println("Case #"+i+": false"); } } }