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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: H = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: E = None
        self.z: A = None
        self.r: H = None
        self.p: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: F = None
        self.v: E = None
        self.t: G = None
        self.q: C = None
        self.p: A = None
        self.o: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: C = None
        self.txt = txt

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

j = A("j")
e = B("e")
b = C("b")
c = D("c")
f = E("f")
d = F("d")
l = G("l")
k = H("k")
g = C("g")

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: H = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: E = None
        self.z: A = None
        self.r: H = None
        self.p: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: F = None
        self.v: E = None
        self.t: G = None
        self.q: C = None
        self.p: A = None
        self.o: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: C = None
        self.txt = txt

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

j = A("j")
e = B("e")
b = C("b")
c = D("c")
f = E("f")
d = F("d")
l = G("l")
k = H("k")
g = C("g")

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