STRING_INPUT="""165, 169
334, 217
330, 227
317, 72
304, 232
115, 225
323, 344
161, 204
316, 259
63, 250
280, 205
84, 282
271, 158
190, 296
106, 349
171, 178
203, 108
89, 271
193, 254
111, 210
341, 343
349, 311
143, 172
170, 307
128, 157
183, 315
211, 297
74, 281
119, 164
266, 345
184, 62
96, 142
134, 61
117, 52
318, 72
338, 287
61, 215
323, 255
93, 171
325, 249
183, 171
71, 235
329, 306
322, 219
151, 298
180, 255
336, 291
72, 300
223, 286
179, 257"""

def coordinates(row):
    rowSplit = row.split()
    return int(rowSplit[0][:1]), int(rowSplit[1])

def day6_part1(inputString):
    rows = inputString.split('\n')
    size = 500
    grid = [['.' for x in range(size)] for y in range(size)]
    point = 'A'
    for coordinate in rows:
        x, y = coordinates(coordinate)
        grid[x][y] = point

    for row in grid:
        for col in row:
            print(col, end='')
        print()
        

STRING_INPUT="""165, 169
334, 217
330, 227
317, 72
304, 232
115, 225
323, 344
161, 204
316, 259
63, 250
280, 205
84, 282
271, 158
190, 296
106, 349
171, 178
203, 108
89, 271
193, 254
111, 210
341, 343
349, 311
143, 172
170, 307
128, 157
183, 315
211, 297
74, 281
119, 164
266, 345
184, 62
96, 142
134, 61
117, 52
318, 72
338, 287
61, 215
323, 255
93, 171
325, 249
183, 171
71, 235
329, 306
322, 219
151, 298
180, 255
336, 291
72, 300
223, 286
179, 257"""

def coordinates(row):
    rowSplit = row.split()
    return int(rowSplit[0][:1]), int(rowSplit[1])

def day6_part1(inputString):
    rows = inputString.split('\n')
    size = 500
    grid = [['.' for x in range(size)] for y in range(size)]
    point = 'A'
    for coordinate in rows:
        x, y = coordinates(coordinate)
        grid[x][y] = point

    for row in grid:
        for col in row:
            print(col, end='')
        print()
        

165, 169
 334, 217
 330, 227
 317, 72
 304, 232
 115, 225
 323, 344
 161, 204
 316, 259
 63, 250
 280, 205
 84, 282
 271, 158
 190, 296
 106, 349
 171, 178
 203, 108
 89, 271
 193, 254
 111, 210
 341, 343
 349, 311
 143, 172
 170, 307
 128, 157
 183, 315
 211, 297
 74, 281
 119, 164
 266, 345
 184, 62
 96, 142
 134, 61
 117, 52
 318, 72
 338, 287
 61, 215
 323, 255
 93, 171
 325, 249
 183, 171
 71, 235
 329, 306
 322, 219
 151, 298
 180, 255
 336, 291
 72, 300
 223, 286
 179, 257