Language: C++

using System;
using System.Linq;

namespace AtCoderBiginnerContest154
{
	class Program
	{
		static void Main(string[] args)
		{
			var strings = ReadStringArray();
			var numbers = ReadIntArray();
			var target = ReadString();

			if (target == strings[0])
			{
				Console.WriteLine($"{numbers[0] - 1} {numbers[1]}");
			}
			else
			{
				Console.WriteLine($"{numbers[0]} {numbers[1] - 1}");
			}
		}

		public static int ReadInt()
			=> int.Parse(Console.ReadLine());

		public static int[] ReadIntArray()
			=> Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();

		public static long ReadLong()
			=> long.Parse(Console.ReadLine());

		public static long[] ReadLongArray()
			=> Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray();

		public static string ReadString()
			=> Console.ReadLine();

		public static string[] ReadStringArray()
			=> Console.ReadLine().Split();
	}
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:8:34: error: 'string' has not been declared
    8 |                 static void Main(string[] args)
      |                                  ^~~~~~
a.cc:8:43: error: expected ',' or '...' before 'args'
    8 |                 static void Main(string[] args)
      |                                           ^~~~
a.cc:24:23: error: expected ':' before 'static'
   24 |                 public static int ReadInt()
      |                       ^~~~~~~
      |                       :
a.cc:25:28: error: invalid pure specifier (only '= 0' is allowed) before 'int'
   25 |                         => int.Parse(Console.ReadLine());
      |                            ^~~
a.cc:24:35: error: initializer specified for static member function 'static int AtCoderBiginnerContest154::Program::ReadInt()'
   24 |                 public static int ReadInt()
      |                                   ^~~~~~~
a.cc:27:23: error: expected ':' before 'static'
   27 |                 public static int[] ReadIntArray()
      |                       ^~~~~~~
      |                       :
a.cc:27:34: error: expected unqualified-id before '[' token
   27 |                 public static int[] ReadIntArray()
      |                                  ^
a.cc:30:23: error: expected ':' before 'static'
   30 |                 public static long ReadLong()
      |                       ^~~~~~~
      |                       :
a.cc:31:28: error: invalid pure specifier (only '= 0' is allowed) before 'long'
   31 |                         => long.Parse(Console.ReadLine());
      |                            ^~~~
a.cc:30:36: error: initializer specified for static member function 'static long int AtCoderBiginnerContest154::Program::ReadLong()'
   30 |                 public static long ReadLong()
      |                                    ^~~~~~~~
a.cc:33:23: error: expected ':' before 'static'
   33 |                 public static long[] ReadLongArray()
      |                       ^~~~~~~
      |                       :
a.cc:33:35: error: expected unqualified-id before '[' token
   33 |                 public static long[] ReadLongArray()
      |                                   ^
a.cc:36:23: error: expected ':' before 'static'
   36 |                 public static string ReadString()
      |                       ^~~~~~~
      |                       :
a.cc:36:31: error: 'string' does not name a type
   36 |                 public static string ReadString()
      |                               ^~~~~~
a.cc:39:23: error: expected ':' before 'static'
   39 |                 public static string[] ReadStringArray()
      |                       ^~~~~~~
      |                       :
a.cc:39:31: error: 'string' does not name a type
   39 |                 public static string[] ReadStringArray()
      |                               ^~~~~~
a.cc:41:10: error: expected ';' after class definition
   41 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void AtCoderBiginnerContest154::Program::Main(int*)':
a.cc:10:25: error: 'var' was not declared in this scope
   10 |                         var strings = ReadStringArray();
      |                         ^~~
a.cc:11:29: error: expected ';' before 'numbers'
   11 |                         var numbers = ReadIntArray();
      |                             ^~~~~~~
a.cc:12:29: error: expected ';' before 'target'
   12 |                         var target = ReadString();
      |                             ^~~~~~
a.cc:14:29: error: 'target' was not declared in this scope
   14 |                         if (target == strings[0])
      |                             ^~~~~~
a.cc:14:39: error: 'strings' was not declared in this scope
   14 |                         if (target == strings[0])
      |                                       ^~~~~~~
a.cc:16:33: error: 'Console' was not declared in this scope
   16 |                                 Console.WriteLine($"{numbers[0] - 1} {numbers[1]}");
      |                                 ^~~~~~~
a.cc:16:51: error: '$' was not declared in this scope
   16 |                                 Console.WriteLine($"{numbers[0] - 1} {numbers[1]}");
      |                                                   ^
a.cc:20:33: error: 'Console' was not declared in this scope
   20 |                                 Console.WriteLine($"{numbers[0]} {numbers[1] - 1}");
      |                                 ^~~~~~~
a.cc:20:51: error: '$' was not declared in this scope
   20 |                                 Console.WriteLine($"{numbers[0]} {numbers[1] - 1}");
      |                                                   ^