The input contains a single integer *a* (10 ≤ *a* ≤ 999).

Output 0 or 1.
The input contains a single integer *a* (10 ≤ *a* ≤ 999).
none
13
1
927
1
48
0
10
0
999
1
142
0
309
1
572
0
835
1
990
0
168
0
431
1
694
0
957
1
932
0

#   ***********************************************************************
#   *                                                                     *
#   *     {_@_A_b_d_u_l___M_a_l_i_k_@_}                                   *
#   *                                                                     *
#   *      _    _       ___                _ _             __             *
#   *     | \  / |     |   |     |          |      |   /     |            *
#   *     |  \/  |     |---|     |          |      |_ /      |            *
#   *     |      |     |   |     |          |      |  \      |            *
#   *     |      |     |   |     |____     _|_     |   \   __|            *
#   *                                                                     *
#   ***********************************************************************
                                                                 #        *
abdul = int(input())                                             #        *
malik = abdul % 2                                                #        *
print(malik)                                                     #        *
                                                                 #        *
#   ***********************************************************************
#   *                                                                     *
#   *     {_@_A_b_d_u_l___M_a_l_i_k_@_}                                   *
#   *                                                                     *
#   *      _    _       ___                _ _             __             *
#   *     | \  / |     |   |     |          |      |   /     |            *
#   *     |  \/  |     |---|     |          |      |_ /      |            *
#   *     |      |     |   |     |          |      |  \      |            *
#   *     |      |     |   |     |____     _|_     |   \   __|            *
#   *                                                                     *
#   ***********************************************************************
