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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: D = None
        self.p: B = None
        self.q: J = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: A = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: G = None
        self.o: B = None
        self.x: A = None
        self.p: H = None
        self.u: C = None
        self.r: B = None
        self.t: A = None
        self.q: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: D = None
        self.p: B = None
        self.q: J = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: A = None
        self.w: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: G = None
        self.o: B = None
        self.x: A = None
        self.p: H = None
        self.u: C = None
        self.r: B = None
        self.t: A = None
        self.q: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

g.t = f
g.v = e
g.s = e
g.y = l
g.p = a
h.u = c
h.q = f
a.s = d
j.r = g
j.x = f
k.p = j
k.o = e
e.u = f
e.v = f
e.o = l
e.s = d
c.x = f
c.w = j
c.y = j
c.p = h
c.q = d
f.v = e
f.s = g
f.w = c
l.w = g
l.x = g
l.t = g
l.q = g
l.s = c
l.o = h
l.r = h
l.p = f
l.u = a
d.o = f
assert e.u.w.x.s.t.s.t.s.txt == "g"