class A:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: G = None
        self.v: F = None
        self.z: B = None
        self.o: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: F = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: C = None
        self.y: B = None
        self.t: D = None
        self.o: B = None
        self.w: A = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: F = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: C = None
        self.y: B = None
        self.t: D = None
        self.o: B = None
        self.w: A = None
        self.s: B = None
        self.txt = txt

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

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