Help me in solving BITOBYT problem

My issue

where my testcase are fail please help me to find out.

My code

import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		for(int i=0;i<t;i++){
		    long n=sc.nextLong();
		    long x=n%26;
		    long a=0,b=0,c=0;
		    long r=n/26;
		    if(x<=2 && x!=0){
		            a=(long)Math.pow(2,r);
		            System.out.println(a+" 0 0");
		    }
		    else if(x>=3 && x<=10){
		             b=(long)Math.pow(2,r);
		             System.out.println("0 "+b+" 0");
		    }
		    else if(x>=11 && x<26){
		             c=(long)Math.pow(2,r);
		             System.out.println("0 "+"0 "+c);
		    }
		    
		    
		}
	}
}

Problem Link: Byte to Bit Practice Coding Problem

@dibyajyotinewa
plzz refer the following code for better understanding of the logic

#include <iostream>
#include<cmath>
using namespace std;

int main() {
	int t;
	cin>>t;
	while(t--)
	{
	    int n;
	    cin>>n;
	    n--;
	    long long c=n/26;
	    int rem=n%26;
	    c=pow(2,c);
	    
	    if(rem<2)
	    cout<<c<<" 0 0"<<endl;
	    else if(rem<10)
	    cout<<"0 "<<c<<" 0"<<endl;
	    else
	    cout<<"0 0 "<<c<<endl;
	}
	return 0;
}