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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: H = None
        self.z: I = None
        self.v: E = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.y: B = None
        self.t: F = None
        self.s: I = None
        self.z: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: G = None
        self.p: H = None
        self.r: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: D = None
        self.txt = txt

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

d.t = h
e.x = n
e.z = n
e.v = j
e.s = m
e.o = l
e.y = a
e.t = a
n.z = m
n.u = j
a.o = m
a.s = h
a.z = c
a.v = g
a.p = j
g.p = n
g.y = e
g.t = m
g.s = c
g.z = d
m.s = c
m.q = c
m.o = c
m.v = h
l.q = c
l.u = j
l.p = h
l.r = g
h.x = e
h.z = a
h.u = m
h.o = d
h.p = n
c.r = l
c.o = a
j.q = c
j.u = l
j.p = h
j.r = g
assert e.x.u.u.p.o.t.txt == "
class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: H = None
        self.z: I = None
        self.v: E = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.y: B = None
        self.t: F = None
        self.s: I = None
        self.z: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: G = None
        self.p: H = None
        self.r: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: D = None
        self.txt = txt

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

d.t = h
e.x = n
e.z = n
e.v = j
e.s = m
e.o = l
e.y = a
e.t = a
n.z = m
n.u = j
a.o = m
a.s = h
a.z = c
a.v = g
a.p = j
g.p = n
g.y = e
g.t = m
g.s = c
g.z = d
m.s = c
m.q = c
m.o = c
m.v = h
l.q = c
l.u = j
l.p = h
l.r = g
h.x = e
h.z = a
h.u = m
h.o = d
h.p = n
c.r = l
c.o = a
j.q = c
j.u = l
j.p = h
j.r = g
assert e.x.u.u.p.o.t.txt == "h"