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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: F = None
        self.s: A = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: G = None
        self.r: E = None
        self.v: H = None
        self.q: A = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: F = None
        self.w: H = None
        self.z: B = None
        self.v: H = None
        self.s: B = None
        self.x: B = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: A = None
        self.t: B = None
        self.y: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: F = None
        self.s: A = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: G = None
        self.r: E = None
        self.v: H = None
        self.q: A = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: F = None
        self.w: H = None
        self.z: B = None
        self.v: H = None
        self.s: B = None
        self.x: B = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: A = None
        self.t: B = None
        self.y: G = None
        self.txt = txt

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

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