Back
Close

The other half

Statement

 Goal

The half of a character c is the character whose ascii code is half (rounded down) of the ascii code of the character c.

Given a character s, print its half.
Input
Line 1: A character, s of which the half must be found.
Output
A single line corresponding to the half of the character s.
Constraints
Example
Input
s
Output
9

Game modes
Fastest, Shortest

Test cases
Test 1 Test
Input
s
Output
9

Validator 1 Validator
Input
f
Output
3

Test 2 Test
Input
h
Output
4

Validator 2 Validator
Input
b
Output
1

Test 3 Test
Input
l
Output
6

Validator 3 Validator
Input
p
Output
8

Test 4 Test
Input
x
Output
<

Validator 4 Validator
Input
S
Output
)

Test 5 Test
Input
G
Output
#

Validator 5 Validator
Input
w
Output
;

Test 6 Test
Input
q
Output
8

Validator 6 Validator
Input
Q
Output
(

Test 7 Test
Input
^
Output
/

Validator 7 Validator
Input
L
Output
&

Solution language

Solution

Stub generator input