#include int main() { double N; scanf("%lf",&N); printf("%lf",264+52*N); return 0; }