Help me in solving LBJ202A problem

My issue

how can you detrmine that this is chicken or ducks

My code

// Step 1: Read and understand the problem statement and sample test cases

// Click on 'Next' once you are ready to proceed.

Learning course: Java for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

@ies_0223
There is no need to determine if z is divisible by both x and y then print any.