w = int(input()) # 入力された文字列を整数に変換
print(32*w);