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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: D = None
        self.r: E = None
        self.txt = txt

a = A("a")
f = B("f")
c = C("c")
m = D("m")
l = E("l")
b = F("b")
j = E("j")
k = D("k")
d = D("d")

a.x = b
a.z = b
a.w = k
f.v = k
f.q = l
f.s = j
f.z = c
c.v = b
c.z = b
c.q = j
c.p = f
c.u = l
c.x = l
m.t = c
m.v = f
m.x = a
m.r = a
m.y = j
m.q = k
l.u = c
l.p = c
l.q = f
l.w = f
l.x = j
b.z = f
b.q = k
b.r = l
j.u = c
j.p = c
j.q = f
j.w = f
j.x = l
k.t = c
k.v = f
k.x = a
k.r = a
k.y = j
k.q = d
d.t = c
d.v = f
d.x = a
d.r = a
d.y = j
d.q = m
assert l.u.p.z.x.q.s.w.s.txt == "
class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: D = None
        self.z: F = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: D = None
        self.r: E = None
        self.txt = txt

a = A("a")
f = B("f")
c = C("c")
m = D("m")
l = E("l")
b = F("b")
j = E("j")
k = D("k")
d = D("d")

a.x = b
a.z = b
a.w = k
f.v = k
f.q = l
f.s = j
f.z = c
c.v = b
c.z = b
c.q = j
c.p = f
c.u = l
c.x = l
m.t = c
m.v = f
m.x = a
m.r = a
m.y = j
m.q = k
l.u = c
l.p = c
l.q = f
l.w = f
l.x = j
b.z = f
b.q = k
b.r = l
j.u = c
j.p = c
j.q = f
j.w = f
j.x = l
k.t = c
k.v = f
k.x = a
k.r = a
k.y = j
k.q = d
d.t = c
d.v = f
d.x = a
d.r = a
d.y = j
d.q = m
assert l.u.p.z.x.q.s.w.s.txt == "j"