Language: C++

#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <array>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>

using namespace std;
using ll = long long;
using ull = unsigned long long;

#ifndef __MACRO_H__
#define __MACRO_H__

#define all(collection)  (collection).begin(), (collection).end()		// begin to end
#define rep(i, begin, end) for (ll i = begin; i < end; i++)					// repeat
#define repr(i, begin, end) for (ll i = begin - 1; end <= i; i--)		// repeat reverse

std::chrono::system_clock::time_point  start;

void TimeStart(void)
{
	start = std::chrono::system_clock::now();
}

void TimeEnd(void)
{
	auto time = std::chrono::system_clock::now() - start;
	auto msec = std::chrono::duration_cast<std::chrono::milliseconds>(time).count();
	cerr << endl << msec << " msec " << endl;
}

#endif


#pragma once

#include "Macro.h"

class AGC034A
{
public:
	AGC034A()
	{
		cin >> n >> a >> b >> c >> d;
		a--;
		b--;
		c--;
		d--;
		cin >> s;
	}
	void Run(void)
	{
		bool ans = true;

		CheckFalse(ans);

		if (ans)
			cout << "Yes";
		else
			cout << "No";
	}
private:
	void CheckFalse(bool& ans)
	{
		CheckKuuhaku3Index();

		if (d < c)
		{
			if (!CheckSpace3(a, c))
				ans = false;
		}

		if (CheckIwa2(a, c))
			ans = false;
		else if (CheckIwa2(b, d))
			ans = false;
	}
	bool CheckSpace3(ll l, ll r)
	{
		rep(i, l, r)
		{
			if (s[i] == '.' && s[i + 1] == '.' && s[i + 2] == '.')
			{
				return true;
			}
		}

		return false;
	}
	bool CheckIwa2(ll l, ll r)
	{
		rep(i, l+1, r-1)
		{
			if (s[i] == '#' && s[i + 1] == '#')
			{
				return true;
			}
		}
		return false;
	}
	ll n;
	ll a;
	ll b;
	ll c;
	ll d;
	string s;
};



int main(void)
{
	AGC034A agc034a;
	agc034a.Run();

	return 0;
}

Compiler output:
a.cc:103:9: warning: #pragma once in main file
  103 | #pragma once
      |         ^~~~
a.cc:105:10: fatal error: Macro.h: No such file or directory
  105 | #include "Macro.h"
      |          ^~~~~~~~~
compilation terminated.