using static System.Console; using System.Linq; namespace App { class Prog { static void Main() { var x = ReadLine().Split().ToArray()[1]; WriteLine((x == "?") ? "1 4" : "4"); } } }