import java.util.*; public class No543 { public static void main(String[] args) { try (final Scanner sc = new Scanner(System.in)) { char c1 = sc.next().charAt(0); char c2 = sc.next().charAt(0); System.out.println(c1 + " " + c2); } } static long gcd(long n, long r) { return r == 0 ? n : gcd(r, n % r); } static long lcm(long n, long r) { return n/gcd(n,r)*r; } static void dump(Object... objects) { System.err.println(Arrays.deepToString(objects)); } }