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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: D = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: C = None
        self.x: A = None
        self.u: A = None
        self.o: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: G = None
        self.x: G = None
        self.y: E = None
        self.q: A = None
        self.p: G = None
        self.s: F = None
        self.t: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: D = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: C = None
        self.x: A = None
        self.u: A = None
        self.o: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: G = None
        self.x: G = None
        self.y: E = None
        self.q: A = None
        self.p: G = None
        self.s: F = None
        self.t: G = None
        self.txt = txt

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

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