class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: F = None
        self.s: D = None
        self.x: B = None
        self.u: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: F = None
        self.p: F = None
        self.u: H = None
        self.v: A = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: A = None
        self.r: H = None
        self.q: C = None
        self.o: F = None
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: E = None
        self.t: B = None
        self.w: C = None
        self.y: H = None
        self.q: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: F = None
        self.p: F = None
        self.u: H = None
        self.v: A = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: A = None
        self.r: H = None
        self.q: C = None
        self.o: F = None
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: E = None
        self.t: B = None
        self.w: C = None
        self.y: H = None
        self.q: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: A = None
        self.txt = txt

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

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