/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	interface F {
		int f(String s) throws Exception;
	}
	
	public static void main (String[] args) throws java.lang.Exception
	{
		F f = a->{int c=32;for(int b:java.security.MessageDigest.getInstance("MD2").digest(a.getBytes())){c-=(b>>6&2)+(b>>2&2);}return c;};
		System.out.println(f.f(""));
		System.out.println(f.f("The quick brown fox jumps over the lazy cog"));
		
	}
}