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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: A = None
        self.o: G = None
        self.t: E = None
        self.w: D = None
        self.r: A = None
        self.v: G = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: E = None
        self.w: F = None
        self.r: I = None
        self.t: A = None
        self.x: G = None
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: I = None
        self.z: D = None
        self.s: G = None
        self.x: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: A = None
        self.o: G = None
        self.t: E = None
        self.w: D = None
        self.r: A = None
        self.v: G = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: E = None
        self.w: F = None
        self.r: I = None
        self.t: A = None
        self.x: G = None
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: I = None
        self.z: D = None
        self.s: G = None
        self.x: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: G = None
        self.txt = txt

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

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