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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: H = None
        self.p: I = None
        self.s: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: G = None
        self.y: D = None
        self.t: A = None
        self.u: A = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: C = None
        self.t: C = None
        self.z: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: E = None
        self.o: C = None
        self.y: C = None
        self.p: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: G = None
        self.s: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: H = None
        self.p: I = None
        self.s: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: G = None
        self.y: D = None
        self.t: A = None
        self.u: A = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: C = None
        self.t: C = None
        self.z: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: E = None
        self.o: C = None
        self.y: C = None
        self.p: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: G = None
        self.s: C = None
        self.txt = txt

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

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