﻿namespace _05.ThirdDigit
{
    using System;

    public class Startup
    {
        public static void Main(string[] args)
        {
            var number = int.Parse(Console.ReadLine()) / 100;
            var thirdDigit = number % 10;

            if (thirdDigit == 7)
            {
                Console.WriteLine("true");
            }
            else
            {
                Console.WriteLine("false {0}", thirdDigit);
            }
        }
    }
}
