#include using namespace std; int main() { int n; scanf("%d",&n); printf("%d\n",12*(n-2)); return 0; }