class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: H = None
        self.s: F = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: E = None
        self.p: A = None
        self.t: E = None
        self.u: E = None
        self.r: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: E = None
        self.w: B = None
        self.x: A = None
        self.y: E = None
        self.q: G = None
        self.v: D = None
        self.r: C = None
        self.txt = txt

e = A("e")
f = B("f")
n = C("n")
g = D("g")
a = E("a")
l = F("l")
c = G("c")
h = H("h")

e.o = c
e.u = c
f.x = n
f.s = g
n.p = g
g.y = c
g.t = f
g.o = a
g.q = l
a.v = h
a.w = h
a.s = l
a.r = g
l.y = c
l.s = a
l.t = a
l.u = a
l.r = a
l.p = e
c.u = a
c.x = a
c.o = e
c.v = e
c.w = h
c.r = h
h.s = e
h.x = e
h.o = a
h.y = a
h.w = f
h.q = c
h.v = g
h.r = n
assert h.r.p.y.w.x.txt == "
class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: H = None
        self.s: F = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: E = None
        self.p: A = None
        self.t: E = None
        self.u: E = None
        self.r: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: E = None
        self.w: B = None
        self.x: A = None
        self.y: E = None
        self.q: G = None
        self.v: D = None
        self.r: C = None
        self.txt = txt

e = A("e")
f = B("f")
n = C("n")
g = D("g")
a = E("a")
l = F("l")
c = G("c")
h = H("h")

e.o = c
e.u = c
f.x = n
f.s = g
n.p = g
g.y = c
g.t = f
g.o = a
g.q = l
a.v = h
a.w = h
a.s = l
a.r = g
l.y = c
l.s = a
l.t = a
l.u = a
l.r = a
l.p = e
c.u = a
c.x = a
c.o = e
c.v = e
c.w = h
c.r = h
h.s = e
h.x = e
h.o = a
h.y = a
h.w = f
h.q = c
h.v = g
h.r = n
assert h.r.p.y.w.x.txt == "e"