class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: B = None
        self.x: G = None
        self.s: D = None
        self.o: C = None
        self.r: E = None
        self.q: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: B = None
        self.o: H = None
        self.v: I = None
        self.q: G = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: B = None
        self.q: D = None
        self.u: D = None
        self.s: E = None
        self.r: I = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: F = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: D = None
        self.y: F = None
        self.s: B = None
        self.q: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: A = None
        self.u: E = None
        self.v: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: B = None
        self.o: H = None
        self.v: I = None
        self.q: G = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: B = None
        self.q: D = None
        self.u: D = None
        self.s: E = None
        self.r: I = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: F = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: D = None
        self.y: F = None
        self.s: B = None
        self.q: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: A = None
        self.u: E = None
        self.v: A = None
        self.txt = txt

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

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