class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.v: F = None
        self.o: G = None
        self.z: F = None
        self.q: E = None
        self.y: G = None
        self.u: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: I = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: A = None
        self.w: E = None
        self.s: H = None
        self.o: G = None
        self.u: B = None
        self.t: G = None
        self.y: F = None
        self.r: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: I = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: A = None
        self.w: E = None
        self.s: H = None
        self.o: G = None
        self.u: B = None
        self.t: G = None
        self.y: F = None
        self.r: B = None
        self.txt = txt

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

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