class A:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: H = None
        self.q: D = None
        self.r: D = None
        self.z: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: H = None
        self.v: H = None
        self.o: H = None
        self.p: A = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: E = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: E = None
        self.x: G = None
        self.v: G = None
        self.u: C = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: F = None
        self.p: C = None
        self.u: H = None
        self.r: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: C = None
        self.s: D = None
        self.w: B = None
        self.txt = txt

i = A("i")
e = B("e")
n = C("n")
b = D("b")
j = E("j")
c = F("c")
g = G("g")
k = H("k")
h = B("h")
d = E("d")

i.r = b
i.y = b
e.y = c
e.w = c
n.y = c
n.p = k
n.q = b
n.r = b
n.z = i
b.y = g
b.x = k
b.v = k
b.o = k
b.p = i
b.z = n
j.r = i
j.o = d
j.w = k
c.z = e
c.y = j
c.x = g
c.v = g
c.u = n
c.q = b
g.q = i
g.s = c
g.p = n
g.r = n
g.u = k
k.z = n
k.v = n
k.s = b
k.w = h
h.y = c
h.w = c
d.r = i
d.o = j
d.w = k
assert k.s.p.y.txt == "
class A:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: H = None
        self.q: D = None
        self.r: D = None
        self.z: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: H = None
        self.v: H = None
        self.o: H = None
        self.p: A = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: E = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: E = None
        self.x: G = None
        self.v: G = None
        self.u: C = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: F = None
        self.p: C = None
        self.u: H = None
        self.r: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: C = None
        self.s: D = None
        self.w: B = None
        self.txt = txt

i = A("i")
e = B("e")
n = C("n")
b = D("b")
j = E("j")
c = F("c")
g = G("g")
k = H("k")
h = B("h")
d = E("d")

i.r = b
i.y = b
e.y = c
e.w = c
n.y = c
n.p = k
n.q = b
n.r = b
n.z = i
b.y = g
b.x = k
b.v = k
b.o = k
b.p = i
b.z = n
j.r = i
j.o = d
j.w = k
c.z = e
c.y = j
c.x = g
c.v = g
c.u = n
c.q = b
g.q = i
g.s = c
g.p = n
g.r = n
g.u = k
k.z = n
k.v = n
k.s = b
k.w = h
h.y = c
h.w = c
d.r = i
d.o = j
d.w = k
assert k.s.p.y.txt == "b"