class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: G = None
        self.x: F = None
        self.z: F = None
        self.q: F = None
        self.p: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: G = None
        self.t: I = None
        self.w: F = None
        self.x: D = None
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: F = None
        self.x: H = None
        self.w: C = None
        self.o: D = None
        self.z: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: G = None
        self.t: I = None
        self.w: F = None
        self.x: D = None
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: F = None
        self.x: H = None
        self.w: C = None
        self.o: D = None
        self.z: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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

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

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