#include <stdio.h>int main(){int n,plus,rest,sum;while(scanf("%d",&n)!=EOF){plus=n/12*50;rest=n%12*5;sum=plus+rest;
printf("%d\n",sum);}plus=0;rest=0;sum=0;}