import java.io.IOException;
public class Main{
	public static void main(String args[]) throws IOException{
		byte a[] = new byte[3];
		System.in.read(a);
		a[0] &= 1;
		a[1] &= 1;
		a[2] &= 1;
		System.out.println(a[0]+a[1]+a[2]);
	}
} import java.io.IOException; IOException java.io public class Main{
	public static void main(String args[]) throws IOException{
		byte a[] = new byte[3];
		System.in.read(a);
		a[0] &= 1;
		a[1] &= 1;
		a[2] &= 1;
		System.out.println(a[0]+a[1]+a[2]);
	}
} Main public static void main(String args[]) throws IOException{
		byte a[] = new byte[3];
		System.in.read(a);
		a[0] &= 1;
		a[1] &= 1;
		a[2] &= 1;
		System.out.println(a[0]+a[1]+a[2]);
	} main {
		byte a[] = new byte[3];
		System.in.read(a);
		a[0] &= 1;
		a[1] &= 1;
		a[2] &= 1;
		System.out.println(a[0]+a[1]+a[2]);
	} byte a[] = new byte[3]; a new byte[3] 3 System.in.read(a) System.in.read System.in System System.in a a[0] &= 1 a[0] a 0 1 a[1] &= 1 a[1] a 1 1 a[2] &= 1 a[2] a 2 1 System.out.println(a[0]+a[1]+a[2]) System.out.println System.out System System.out a[0]+a[1]+a[2] a[0]+a[1]+a[2] a[0] a 0 a[1] a 1 a[2] a 2 String args[] args public class Main{
	public static void main(String args[]) throws IOException{
		byte a[] = new byte[3];
		System.in.read(a);
		a[0] &= 1;
		a[1] &= 1;
		a[2] &= 1;
		System.out.println(a[0]+a[1]+a[2]);
	}
} public class Main{
	public static void main(String args[]) throws IOException{
		byte a[] = new byte[3];
		System.in.read(a);
		a[0] &= 1;
		a[1] &= 1;
		a[2] &= 1;
		System.out.println(a[0]+a[1]+a[2]);
	}
} Main
import java.io.IOException;
public class Main{
	public static void main(String args[]) throws IOException{
		byte a[] = new byte[3];
		System.in.read(a);
		a[0] &= 1;
		a[1] &= 1;
		a[2] &= 1;
		System.out.println(a[0]+a[1]+a[2]);
	}
}
