import java.io.PrintWriter; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { PrintWriter pw=new PrintWriter(System.out); Scanner sc=new Scanner(System.in); int[] num={20104,20063,19892,20011,19874,20199,19898,20163,19956,19841}; String s=sc.next(); char[] c=new char[s.length()]; int cnt[]=new int[10]; for(int i=0;i