class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: E = None
        self.t: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: G = None
        self.r: G = None
        self.v: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: H = None
        self.t: E = None
        self.o: B = None
        self.q: D = None
        self.u: D = None
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: A = None
        self.z: G = None
        self.y: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: G = None
        self.r: G = None
        self.v: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: H = None
        self.t: E = None
        self.o: B = None
        self.q: D = None
        self.u: D = None
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: A = None
        self.z: G = None
        self.y: E = None
        self.txt = txt

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

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