class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: D = None
        self.t: F = None
        self.v: H = None
        self.q: B = None
        self.u: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: G = None
        self.o: B = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: H = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: E = None
        self.q: A = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: G = None
        self.o: B = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: H = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: E = None
        self.q: A = None
        self.txt = txt

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

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

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

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