Help me in solving CNDJ5V2 problem

My issue

My code

import java.util.*;

class Codechef
{
	public static void main (String[] args)
	{
	    int r;
        int k;
        r = 24;
        k = 32;
        if (r > k) {
            System.out.println("Ram is heavier than Karan.");
        } else if (r < k) {
            System.out.println("Karan is heavier than Ram");
        } else {
            System.out.println("Ram & Karan have the same weight!");
        }

        r = 78;
        k = 78;
        if (r > k) {
            System.out.println("Ram is heavier than Karan.");
        } else if (r < k) {
            System.out.println("Karan is heavier than Ram");
        } else {
            System.out.println("Ram & Karan have the same weight!");
        }
	}
}

Learning course: Learn Java
Problem Link: CodeChef: Practical coding for everyone