#include<stdio.h>
int
main()
{
n,Sn = 0,i,a = 0;
scanf
(
"%d"
,&n);
for
(i=0; i<n; i++){
a = a * 10 + 2;
Sn = Sn + a;
}
printf
"%d "
,Sn);
return
0;