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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: G = None
        self.p: H = None
        self.v: D = None
        self.y: H = None
        self.t: D = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: E = None
        self.s: D = None
        self.u: H = None
        self.r: E = None
        self.x: D = None
        self.q: H = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.w: I = None
        self.v: A = None
        self.z: B = None
        self.r: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: E = None
        self.p: G = None
        self.z: F = None
        self.txt = txt

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

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

e.t = m
e.p = k
i.z = l
i.o = l
i.x = b
i.p = k
i.y = k
i.v = a
i.t = a
l.w = k
l.u = k
l.q = k
l.y = g
l.r = g
l.s = a
l.x = a
l.t = a
a.o = m
a.w = m
a.v = e
a.z = i
a.r = k
g.x = i
h.o = k
b.q = g
b.z = g
b.u = k
b.v = k
b.y = a
b.o = a
k.r = a
k.u = g
k.p = b
k.z = h
m.t = b
m.s = b
m.x = e
m.z = i
m.q = g
assert i.x.v.p.o.r.r.txt == "
class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: G = None
        self.p: H = None
        self.v: D = None
        self.y: H = None
        self.t: D = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: E = None
        self.s: D = None
        self.u: H = None
        self.r: E = None
        self.x: D = None
        self.q: H = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.w: I = None
        self.v: A = None
        self.z: B = None
        self.r: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: E = None
        self.p: G = None
        self.z: F = None
        self.txt = txt

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

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

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