class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: D = None
        self.t: C = None
        self.y: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: E = None
        self.y: H = None
        self.t: C = None
        self.v: A = None
        self.r: E = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: E = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: E = None
        self.y: H = None
        self.t: C = None
        self.v: A = None
        self.r: E = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: E = None
        self.s: B = None
        self.txt = txt

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

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

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

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