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

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

class C:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: A = None
        self.s: D = None
        self.t: E = None
        self.y: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: A = None
        self.r: D = None
        self.x: A = None
        self.p: A = None
        self.y: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: A = None
        self.s: D = None
        self.t: E = None
        self.y: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: A = None
        self.r: D = None
        self.x: A = None
        self.p: A = None
        self.y: B = None
        self.txt = txt

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

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

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