#include<stdio.h>
int main(){
    float c,f;
    scanf("%f",&c);
    f=(c*9/5)+32;
    printf(f);
}