package yukicoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class N432 { public static void main(String[] args)throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int T=Integer.parseInt(br.readLine()); for(int i=0;i=10){s[k]=1+s[k]%10;} } } System.out.println(s[0]); } } }