public static int count=0; public static void main(String[] args) throws Exception { //write your code here InputStream ab= System.in; InputStreamReader bd= new InputStreamReader(ab); BufferedReader a= new BufferedReader(bd); String ah= a.readLine(); String hj= a.readLine(); String yu= a.readLine(); int h = Integer.parseInt(ah); int d= Integer.parseInt(hj); int o= Integer.parseInt(yu); if(h==0 & d==0 & o==0) {System.out.println(0);} if(h>0){count++;} if(d>0){count++;} if (o>0){count++;} System.out.println(count);