This page is still under construction.

Parts of this page are still being built. What you see may change.

MD5

Time limit1sMemory limit256 MB

Summary
Read a short alphanumeric string and print its MD5 hash as 32 lowercase hex digits.
Level

Medium4 of 10

Topics
Implementation, Bit manipulation
Solved
No attempts yet

Problem

You are given a string SS. Write a program that computes the MD5 hash of SS.

MD5 reduces a byte sequence of any length to a 128 bit value. The answer is that 128 bit value written as 32 hexadecimal digits.

Input

The first line contains the string SS. SS consists only of uppercase letters, lowercase letters, and digits, and its length is between 1 and 50.

Output

Print the MD5 hash of SS on the first line, as 32 lowercase hexadecimal digits. The newline that ends the input line is not part of the hashed data.

Examples3

  1. Example 1

    Input
    OnlineJudge
    
    Expected output
    b7f574e559096ae4de43f4fc2dcb412c
    
  2. Example 2

    Input
    MD5
    
    Expected output
    7f138a09169b250e9dcb378140907378
    
  3. Example 3

    Input
    HashValue2026
    
    Expected output
    ae26a2a6c74479b67babfcd19b404105