import java.util.Scanner;
public class NiceString
{
public static String convertToNiceString(String s,int n)
{
String nice = ββ;
for(int i = 0; i<n;i++)
{
if(1 <= n && n<= 104)
{ if(s.length() <2)
return s;
else if(s.charAt(n-1) == s.charAt(n-2))
return convertToNiceString(s.substring(n-1),n);
else
return s.charAt(n-1) + convertToNiceString(s.substring(n-2),n);
return nice + s.charAt(n-1) + convertToNiceString(s.substring(n-2),n);
}
}
}
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String s = sc.next();
System.out.println(convertToNiceString(s,n-1));
}
}