class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: H = None
        self.t: G = None
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: H = None
        self.u: H = None
        self.v: F = None
        self.p: A = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: E = None
        self.s: H = None
        self.t: A = None
        self.o: F = None
        self.x: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: G = None
        self.p: E = None
        self.txt = txt

f = A("f")
h = B("h")
d = C("d")
g = D("g")
a = E("a")
b = F("b")
l = G("l")
j = H("j")

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: H = None
        self.u: H = None
        self.v: F = None
        self.p: A = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: E = None
        self.s: H = None
        self.t: A = None
        self.o: F = None
        self.x: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: G = None
        self.p: E = None
        self.txt = txt

f = A("f")
h = B("h")
d = C("d")
g = D("g")
a = E("a")
b = F("b")
l = G("l")
j = H("j")

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