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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: A = None
        self.p: D = None
        self.w: C = None
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: F = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: A = None
        self.p: D = None
        self.w: C = None
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: F = None
        self.txt = txt

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

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

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

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

k.w = a
k.y = i
f.u = a
f.o = k
f.p = i
f.w = j
f.y = h
j.t = a
j.q = a
i.w = k
i.t = e
i.x = j
i.v = j
i.o = h
i.r = h
l.v = j
l.p = a
l.u = a
l.w = k
l.x = g
a.w = j
a.q = k
a.r = c
a.y = h
a.u = f
a.p = i
g.w = k
g.t = e
g.x = j
g.v = j
g.o = l
g.r = h
e.w = k
e.t = g
e.x = j
e.v = j
e.o = h
e.r = h
h.v = j
h.p = a
h.u = a
h.w = k
h.x = i
c.u = a
c.o = k
c.p = e
c.w = j
c.y = h
assert j.q.w.q.w.t.txt == "a"