class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: E = None
        self.u: G = None
        self.x: B = None
        self.t: E = None
        self.z: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: D = None
        self.x: F = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: B = None
        self.u: F = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: A = None
        self.q: D = None
        self.p: D = None
        self.v: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: D = None
        self.x: F = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: B = None
        self.u: F = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: A = None
        self.q: D = None
        self.p: D = None
        self.v: C = None
        self.txt = txt

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

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

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

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