class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: D = None
        self.s: D = None
        self.z: F = None
        self.y: B = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: D = None
        self.txt = txt

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

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

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

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

e = A("e")
l = B("l")
j = C("j")
k = D("k")
i = E("i")
n = F("n")
g = D("g")
c = E("c")
f = B("f")
h = E("h")

e.p = l
e.w = g
e.s = k
e.t = k
e.z = n
e.y = f
l.q = f
l.u = g
j.v = f
j.q = f
j.u = k
j.w = n
k.t = c
k.x = g
k.u = j
i.x = c
n.y = c
n.t = c
n.x = j
n.w = h
n.z = g
g.t = i
g.x = k
g.u = j
c.x = h
f.q = l
f.u = k
h.x = i
assert k.u.u.t.txt == "
class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: D = None
        self.s: D = None
        self.z: F = None
        self.y: B = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: D = None
        self.txt = txt

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

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

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

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

e = A("e")
l = B("l")
j = C("j")
k = D("k")
i = E("i")
n = F("n")
g = D("g")
c = E("c")
f = B("f")
h = E("h")

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