#include<stdio.h>
int main(){
int a=5,b=1;
while(b<=5)
{a=3*a+2;
b=b+1;}
printf("a5は%dです。",a);

return 0;}
