#include<iostream>
using namespace  std;
int main(){
    int N;
    cin>>N;
    int rotated=((N << 1) & 0xFF)
    cout<< rotated <<endl;
    return 0;
}