This page is still under construction.

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

RIPEMD-160

Time limit1sMemory limit256 MB

Summary
Compute the RIPEMD-160 hash of an alphanumeric string of length at most 50 and print it as 40 lowercase hexadecimal digits.
Level

Medium4 of 10

Topics
Implementation, Bit manipulation
Solved
No attempts yet

Problem

Given a string SS, write a program that computes the RIPEMD-160 hash of SS. RIPEMD-160 is a hash function that reduces a byte sequence of any length to a 160-bit hash value. Treat SS as a sequence of ASCII bytes.

Input

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

Output

On the first line, print the RIPEMD-160 hash of SS as 40 lowercase hexadecimal digits.

Examples2

  1. Example 1

    Input
    Hello
    
    Expected output
    d44426aca8ae0a69cdbc4021c64fa5ad68ca32fe
    
  2. Example 2

    Input
    abc
    
    Expected output
    8eb208f7e05d987a9b044a8e98c6b087f15a0bfc