import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String num = sc.next(); int len = num.length(); boolean is4 = false; boolean is6 = false; for(int i=0; i