class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: I = None
        self.u: C = None
        self.y: G = None
        self.t: G = None
        self.v: C = None
        self.r: I = None
        self.q: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: C = None
        self.p: F = None
        self.w: E = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: D = None
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: G = None
        self.t: B = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: F = None
        self.y: D = None
        self.x: E = None
        self.txt = txt

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

e.x = i
e.z = l
e.r = l
e.u = j
e.v = j
e.y = d
e.t = d
e.q = n
g.q = l
g.o = j
g.p = n
g.r = n
g.w = f
j.v = e
j.y = e
j.q = h
h.s = n
h.o = l
f.u = d
f.w = d
f.t = g
f.q = j
n.y = h
d.u = n
d.z = h
d.s = h
i.u = f
i.s = j
l.u = j
l.o = n
l.y = h
l.x = f
assert g.p.y.s.y.o.x.txt == "
class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: I = None
        self.u: C = None
        self.y: G = None
        self.t: G = None
        self.v: C = None
        self.r: I = None
        self.q: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: C = None
        self.p: F = None
        self.w: E = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: D = None
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: G = None
        self.t: B = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: F = None
        self.y: D = None
        self.x: E = None
        self.txt = txt

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

e.x = i
e.z = l
e.r = l
e.u = j
e.v = j
e.y = d
e.t = d
e.q = n
g.q = l
g.o = j
g.p = n
g.r = n
g.w = f
j.v = e
j.y = e
j.q = h
h.s = n
h.o = l
f.u = d
f.w = d
f.t = g
f.q = j
n.y = h
d.u = n
d.z = h
d.s = h
i.u = f
i.s = j
l.u = j
l.o = n
l.y = h
l.x = f
assert g.p.y.s.y.o.x.txt == "f"