This page is still under construction.

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

SHA-1 Hash

Time limit1sMemory limit256 MB

Summary
Print the SHA-1 hash of the given alphanumeric string as lowercase hexadecimal.
Level

Medium4 of 10

Topics
Implementation, Bit manipulation
Solved
No attempts yet

Problem

Given a string SS, write a program that prints its SHA-1 hash as a lowercase hexadecimal string.

Input

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

Output

Print the SHA-1 hash of SS on the first line.

Examples4

  1. Example 1

    Input
    HelloWorld
    
    Expected output
    db8ac1c259eb89d4a131b253bacfca5f319d54f2
    
  2. Example 2

    Input
    abc
    
    Expected output
    a9993e364706816aba3e25717850c26c9cd0d89d
    
  3. Example 3

    Input
    a
    
    Expected output
    86f7e437faa5a7fce15d1ddcb9eaeaea377667b8
    
  4. Example 4

    Input
    0123456789
    
    Expected output
    87acec17cd9dcd20a716cc2cf67417b71c8a7016