I don't know what my wrong

package com.codegym.task.task06.task0606;
import java.io.*;
/*
Even and odd digits
*/
public class Solution {
public static int even=0;
public static int odd=0;
public static void main(String[] args) throws IOException {
//write your code here
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
int num=Integer.parseInt(reader.readLine());
int temp=num;
int rem=0;
// num=temp;
for(int i=1;i>0;i++){
temp=temp/10;
if(temp!=0){
rem=temp%10;
if(rem%2==0){
even++;
}
else if(rem%2!=0) {
odd++;
}
else {
break;
}
}
}
System.out.println("Even: "+even) ;
System.out.println(" Odd: "+odd);
}
}