#include int main(){ // 総ページ数 int page = 0; long long chapter = 0; scanf("%lld",&chapter); int breakpage = 0; for(int i = 0;i < chapter;i ++){ if(i == 0){ breakpage += 316; }else{ breakpage += 52; } page += breakpage; } printf("%lld",page); }