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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

h = A("h")
a = B("a")
l = C("l")
k = D("k")
m = E("m")
d = F("d")
g = F("g")
j = E("j")
e = A("e")
c = A("c")

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

h = A("h")
a = B("a")
l = C("l")
k = D("k")
m = E("m")
d = F("d")
g = F("g")
j = E("j")
e = A("e")
c = A("c")

h.x = j
h.p = k
h.z = k
h.v = l
h.t = l
h.q = a
a.w = k
l.w = c
l.y = c
l.x = d
l.z = k
l.u = k
k.u = a
m.z = c
m.q = c
m.v = h
d.s = a
g.s = a
j.z = e
j.v = c
j.q = h
e.x = m
e.p = k
e.z = k
e.v = l
e.t = l
e.q = a
c.x = j
c.p = k
c.z = k
c.v = l
c.t = l
c.q = a
assert j.q.t.u.u.w.u.w.u.w.txt == "k"