class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: C = None
        self.t: B = None
        self.q: B = None
        self.s: H = None
        self.u: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: A = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: A = None
        self.z: B = None
        self.q: B = None
        self.v: D = None
        self.s: B = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: G = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: F = None
        self.x: H = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: C = None
        self.s: E = None
        self.o: A = None
        self.w: G = None
        self.txt = txt

i = A("i")
f = B("f")
c = C("c")
m = D("m")
h = E("h")
e = F("e")
n = G("n")
j = H("j")

i.o = n
i.x = c
i.t = f
i.q = f
i.s = j
i.u = h
f.o = e
f.p = i
c.u = h
c.x = i
c.r = n
m.x = e
h.u = m
h.v = m
h.y = i
h.z = f
h.q = f
h.s = f
h.w = c
e.y = f
e.q = n
e.p = m
n.v = f
n.q = e
n.x = j
n.w = j
j.r = f
j.u = c
j.s = h
j.o = i
j.w = n
assert e.y.p.t.o.p.x.p.x.txt == "
class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: C = None
        self.t: B = None
        self.q: B = None
        self.s: H = None
        self.u: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: A = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: A = None
        self.z: B = None
        self.q: B = None
        self.v: D = None
        self.s: B = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: G = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: F = None
        self.x: H = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: C = None
        self.s: E = None
        self.o: A = None
        self.w: G = None
        self.txt = txt

i = A("i")
f = B("f")
c = C("c")
m = D("m")
h = E("h")
e = F("e")
n = G("n")
j = H("j")

i.o = n
i.x = c
i.t = f
i.q = f
i.s = j
i.u = h
f.o = e
f.p = i
c.u = h
c.x = i
c.r = n
m.x = e
h.u = m
h.v = m
h.y = i
h.z = f
h.q = f
h.s = f
h.w = c
e.y = f
e.q = n
e.p = m
n.v = f
n.q = e
n.x = j
n.w = j
j.r = f
j.u = c
j.s = h
j.o = i
j.w = n
assert e.y.p.t.o.p.x.p.x.txt == "e"