Help me in solving LPYAS167 problem

My issue

Actually I’M getting hidden test case as failed.

My code

#include <stdio.h>

int main() {
	int n,r;
	scanf("%d",&n);
	while(n>0)
	{
	    r=n%2;
	    printf("%d",r);
	    n=n/2;
	}
	return 0;
}

Learning course: Algorithmic Problem Solving
Problem Link: https://www.codechef.com/learn/course/klu-problem-solving/KLUPS00A/problems/LPYAS167