# Enter your code here. Read input from STDIN. Print output to STDOUT a = raw_input(), b = raw_input(), print b[0] print a[0]