import java.math.*;import java.security.*;import java.util.*;enum M {M;System Z;{for(Scanner S=new Scanner(Z.in);S.hasNext();)try{Z.out.printf("%032x\n",new BigInteger(1,MessageDigest.getInstance("MD5").digest(S.nextLine().getBytes())));}catch(Exception _){}}}