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

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

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

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: I = None
        self.y: F = None
        self.t: I = None
        self.u: A = None
        self.p: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: E = None
        self.r: B = None
        self.txt = txt

b = A("b")
d = B("d")
m = C("m")
g = D("g")
e = E("e")
j = F("j")
f = G("f")
k = H("k")
a = I("a")
n = E("n")

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: I = None
        self.y: F = None
        self.t: I = None
        self.u: A = None
        self.p: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: E = None
        self.r: B = None
        self.txt = txt

b = A("b")
d = B("d")
m = C("m")
g = D("g")
e = E("e")
j = F("j")
f = G("f")
k = H("k")
a = I("a")
n = E("n")

b.z = g
b.v = g
b.x = m
b.o = e
d.q = n
d.v = n
d.w = m
m.u = f
m.z = f
m.p = f
m.t = j
m.x = b
m.w = e
g.w = d
g.v = a
g.t = a
g.y = j
g.u = b
g.p = b
e.u = j
e.p = n
j.v = d
j.x = g
j.y = f
f.t = e
f.o = j
k.t = b
k.z = g
a.u = e
a.q = n
a.r = d
n.u = j
n.p = e
assert a.r.w.x.o.u.y.txt == "f"