class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: F = None
        self.w: A = None
        self.r: B = None
        self.z: C = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: D = None
        self.r: E = None
        self.s: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: A = None
        self.u: E = None
        self.q: D = None
        self.y: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: D = None
        self.v: D = None
        self.t: B = None
        self.u: C = None
        self.txt = txt

b = A("b")
c = B("c")
k = C("k")
m = D("m")
g = E("g")
e = F("e")
j = D("j")
h = E("h")
i = A("i")

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: D = None
        self.r: E = None
        self.s: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: A = None
        self.u: E = None
        self.q: D = None
        self.y: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: D = None
        self.v: D = None
        self.t: B = None
        self.u: C = None
        self.txt = txt

b = A("b")
c = B("c")
k = C("k")
m = D("m")
g = E("g")
e = F("e")
j = D("j")
h = E("h")
i = A("i")

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