import os

leaf_origin = [
        90,91,92,93,94,95,96,97,98,99,100,
101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,
124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,
148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,171,
172,173,522,527,558,560,561,570,572,586,589,590,593,596,597,598,599,605,606,609,615,619,621,
636,637,638,641,650,664,665,681,691,702,706,711,712,713,715,720,722,723,725,726,733,738,739,
746,749,751,756,760,764,769,772,785,787,788,796,798,801,804,805,806,809,812,813,814,818,820,
823,832,847,858,859,865,878,880,881,882,883,885,890,897,899,912,927,928,1008,1009,1018,1022,
1027,1034,1036,1052,1060,1079,1080,1085,1094,1095,1103,1111,1112,1122,1125,1140,1150,1168,
1174,1191,1206,1209,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1243,1245,1248,
1253,1254,1255,1258,1259,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,
1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,
1292,1293,1294,1295,1296,1297,1298,1299,1300,1302,1303,1304,1306,1307,1308,1309,1315,1318,
1319,1320,1325,1326,1327,1328,1329,1330,1332,1334,1335,1336,1337,1338,1339,1340,1341,1342,
1344,1345,1346,1347,1348,1349,1350,1352,1353,1354,1355,1356,1358,1359,1360,1363,1364,1365,
1366,1367,1368,1369,1371,1372,1373,1374,1375,1376,1377,1378,1381,1382,1383,1384,1385,1386,
1388,1389,1390,1391,1395,1396,1397,1398,1399,1400,1401,1402,1405,1406,1407,1408,1409,1411,
1413,1414,1418,1419,1420,1422,1423,1424,1425,1427,1428,1429,1430,1431,1432,1433,1434,1436,
1437,1439,1440,1442,1443,1445,1447,1448,1449,1454,1455,1456,1457,1460,1461,1463,1464,1465,
1466,1467,1468,1470,1472,1473,1474,1475,1476,1479,1481,1483,1486,1488,1490,1491,1492,1493,
1494,1495,1498,1500,1502,1503,1505,1506,1507,1508,1510,1513,1515,1516,1517,1518,1520,1522,
1523,1524,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1539,1540,1541,1543,
1544,1546,1547,1548,1551,1552,1554,1557,1559,1560,1561,1563,1564,1566,1567,1568,1570,1571,
1572,1580,1581,1583,1584,1586,1590,1593,1594,1595,1597,1598,1599,1600,1602,1603,1605,1606,
1607,1609,1612,1613,1614,1616,1617,1620,1622,1623,1626,1627,1628,1629,1632,1633,1635,1637,
1639,1641,1645,1646,1647,1648,1649,1650,1651,1652,1656,1657,1662,1664,1666,1667,1668,1671,
1672,1674,1678,1679,1680,1681,1682,1684,1687,1688,1692,1693,1694,1695,1698,1699,1701,1702,
1704,1705,1707,1709,1710,1712,1716,1717,1721,1726,1729,1734,1737,1738,1740,1743,1744,1747
]


dir_origin = './leaf'
dir_target = './leaf_2'

for sample in leaf_origin:
    os.replace(os.path.join(dir_origin, str(sample)+'.jpg'), os.path.join(dir_target, str(sample)+'.jpg'))
    print (os.path.join(dir_origin, str(sample)+'.jpg'))


print (len(leaf_origin))


