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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: I = None
        self.u: I = None
        self.p: D = None
        self.z: I = None
        self.y: B = None
        self.x: F = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: D = None
        self.u: G = None
        self.q: C = None
        self.s: C = None
        self.r: B = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: G = None
        self.s: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: I = None
        self.u: I = None
        self.p: D = None
        self.z: I = None
        self.y: B = None
        self.x: F = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: D = None
        self.u: G = None
        self.q: C = None
        self.s: C = None
        self.r: B = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: G = None
        self.s: G = None
        self.txt = txt

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

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