import java.util.Scanner;
public class a121 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
while(sc.hasNext()) {
float r = sc.nextFloat();
float R = ((r*9)/5+32);
String s = String.valueOf(R);
if(s.endsWith(".0")) {
System.out.println(s.substring(0,s.indexOf(".")));
}else {
System.out.println(s);
}
}
}
}