import java.util.Scanner;

class Feb3 {
	public static void main(String[] args) {

		Scanner kb = new Scanner(System.in);

		int x = kb.nextInt();
		double d = kb.nextDouble();

		kb.nextLine();  //skip last \n in buffer
		String s = kb.nextLine();

		System.out.printf("%d %f %s\n", x, d, s);		

		// get first and last character in string s

		char first = s.charAt(0);
		char last = s.charAt(s.length() - 1);

		System.out.printf("%c %c\n", first, last);

		//boolean variable
		boolean flag = true;
		int a = 5;
		int b = 6;

		// == is the comparison operator
		flag = (a == b);
		System.out.printf("%b\n", flag);

		// != is the not equal operator
		flag = (a != b);
		System.out.printf("%b\n", flag);

		// we also have other relational operators
		// <, >, <=, >= 
		flag = (a < b);
		System.out.printf("%b\n", flag);

		// We can combine relational expressions with
		// logical operators: || (OR), && (AND), ! (NOT)		

		flag = (a == b) || (a > 6);
		flag = (a == 6) && (b == 6);
		flag = !(a == 6);		// same as (a !- 6)
		flag = !((a == 6) && (b == 6));


	}
}
