class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: G = None
        self.u: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: B = None
        self.y: G = None
        self.p: G = None
        self.s: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: A = None
        self.y: B = None
        self.q: F = None
        self.s: C = None
        self.u: G = None
        self.z: A = None
        self.txt = txt

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

j = A("j")
d = B("d")
i = C("i")
c = D("c")
b = E("b")
l = F("l")
e = G("e")
h = A("h")
f = C("f")
a = F("a")

j.t = e
j.q = e
j.u = e
d.w = a
i.q = b
i.z = d
i.y = e
i.p = e
i.s = a
c.v = d
c.w = a
b.o = d
b.q = d
b.x = h
b.u = f
l.p = h
l.z = h
l.t = j
l.y = d
l.q = a
l.s = i
l.u = e
e.w = b
e.q = d
h.t = e
h.q = e
h.u = e
f.q = b
f.z = d
f.y = e
f.p = e
f.s = l
a.p = h
a.z = h
a.t = j
a.y = d
a.q = l
a.s = f
a.u = e
assert e.q.w.t.txt == "
class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: G = None
        self.u: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: B = None
        self.y: G = None
        self.p: G = None
        self.s: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: A = None
        self.y: B = None
        self.q: F = None
        self.s: C = None
        self.u: G = None
        self.z: A = None
        self.txt = txt

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

j = A("j")
d = B("d")
i = C("i")
c = D("c")
b = E("b")
l = F("l")
e = G("e")
h = A("h")
f = C("f")
a = F("a")

j.t = e
j.q = e
j.u = e
d.w = a
i.q = b
i.z = d
i.y = e
i.p = e
i.s = a
c.v = d
c.w = a
b.o = d
b.q = d
b.x = h
b.u = f
l.p = h
l.z = h
l.t = j
l.y = d
l.q = a
l.s = i
l.u = e
e.w = b
e.q = d
h.t = e
h.q = e
h.u = e
f.q = b
f.z = d
f.y = e
f.p = e
f.s = l
a.p = h
a.z = h
a.t = j
a.y = d
a.q = l
a.s = f
a.u = e
assert e.q.w.t.txt == "j"