Problem:
Score : 100 points

Problem Statement

Given are two strings S and T consisting of lowercase English letters. Concatenate T and S in this order, without space in between, and print the resulting string.

Constraints

S and T are strings consisting of lowercase English letters.

The lengths of S and T are between 1 and 100 (inclusive).

Input

Input is given from Standard Input in the following format:

S T

Output

Print the resulting string.

Sample Input 1

oder atc

Sample Output 1

atcoder

When S = oder and T = atc, concatenating T and S in this order results in atcoder.

Sample Input 2

humu humu

Sample Output 2

humuhumu

Solution in C (Clang 3.8.0) (judge verdict: Runtime Error)

#include<stdio.h>
#include <string.h>

int main(void){

    int n,k,r,s,p;
    int i=0;
    int cr=0, cs=0, cp=0;

    scanf("%d %d", &n, &k);
    
    char t[n+1], at[n+1];
    scanf("%d %d %d", &r, &s, &p);
    scanf("%s", &t);

    for(i = k; i<n; i++){
        if (t[i] == t[i-k]){
            t[i] = 'a';
        }
    }

    i=0;

    while(t[i] != '\0'){

        if(t[i]=='r'){
            cp++;
            at[i]='r';
        }else if(t[i]=='s'){
            cr++;
            at[i]='s';
        }else if(t[i]=='p'){
            cs++;
            at[i]='p';
        }
        i++;
    }

    printf("%d", (r*cr+s*cs+p*cp) );
}